Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Expired the snapshot that is planning in optimizing process #2365

Open
2 tasks done
HuangFru opened this issue Nov 27, 2023 · 0 comments · May be fixed by #2366
Open
2 tasks done

[Bug]: Expired the snapshot that is planning in optimizing process #2365

HuangFru opened this issue Nov 27, 2023 · 0 comments · May be fixed by #2366
Labels
type:bug Something isn't working

Comments

@HuangFru
Copy link
Contributor

What happened?

Currently, we create TableOptimizingProcess after the planner is ready:
image

When optimizing tasks are not committed, the snapshot with which it planned should not be expired:
image

However, when a table is planned for too long, the snapshot of the table may be expired during planning. Because the TableOptimizingProcess has not been generated at this time, fetchOptimizingSnapshotTime will return Long.MAX_VALUE.

Then when we commit, we'll occur NPE:
image

Affects Versions

master

What engines are you seeing the problem on?

AMS

How to reproduce

Construct a scenario as described in ‘what happened’.

Relevant log output

NPE problem.

Anything else

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

  • I agree to follow this project's Code of Conduct
@HuangFru HuangFru added the type:bug Something isn't working label Nov 27, 2023
@HuangFru HuangFru linked a pull request Nov 27, 2023 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant