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

Fix the slave may crash when restoring the db #606

Merged
merged 1 commit into from
May 25, 2022
Merged

Fix the slave may crash when restoring the db #606

merged 1 commit into from
May 25, 2022

Conversation

git-hulk
Copy link
Member

The db pointer was forbidden to use when restoring the db, but we
didn't check the loading status in recordInstantaneousMetrics
in the server's cron thread. We can skip all the cron operations
when restoring the db instead of checking status one by one.

This closes #603

The db pointer was forbidden to use when restoing the db, but we
didn't check the loading status in `recordInstantaneousMetrics`
in the server's cron thread. We can skip all the cron operations
when restoring the db instead of checking status one by one.
Copy link
Member

@tisonkun tisonkun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@git-hulk git-hulk merged commit 98e1e79 into apache:unstable May 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The slave would crash when restoring the db from checkpoint error
3 participants