-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
handle fully acked zero byte page at queue open #7810
Conversation
The jenkins build failure is about DLQ which seems unrelated to this PR. |
I will have to trust the failing and then not failing test and Colin on this one. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Second review? |
Build failures seem unrelated. LGTM |
Merging since Colin is on vacation. |
This PR commit was not merged into 5.6. I just correctly added it in 5.6 and will be part of 5.6.5. |
fixes #7809
This fixes the condition upon opening the queue, a page file of zero byte with a fully acked checkpoint would generate this exception:
I also added a test to reproduce that problem. Without this fix the test fails with the above exception and passes with this PR.
This condition should not prevent LS from starting since fully acked page are simply purged in the open process. Here we just do the purge before checking on the file size.
Now, the condition which leads to having a zero byte page file is still unknown.
followup issue #7811 to DRY the code. This seems to be an acceptable fix for now.