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

handle fully acked zero byte page at queue open #7810

Merged
merged 1 commit into from
Aug 2, 2017

Conversation

colinsurprenant
Copy link
Contributor

@colinsurprenant colinsurprenant commented Jul 25, 2017

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:

Logstash failed to create queue {"exception"=>"Page file size 0 different to configured page capacity xxx

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.

@colinsurprenant
Copy link
Contributor Author

The jenkins build failure is about DLQ which seems unrelated to this PR.

@guyboertje guyboertje self-assigned this Jul 28, 2017
@guyboertje
Copy link
Contributor

I will have to trust the failing and then not failing test and Colin on this one.

Copy link
Contributor

@guyboertje guyboertje left a comment

Choose a reason for hiding this comment

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

LGTM

@guyboertje
Copy link
Contributor

@suyograo @jordansissel

Second review?

@jordansissel
Copy link
Contributor

Build failures seem unrelated. LGTM

@suyograo
Copy link
Contributor

suyograo commented Aug 2, 2017

Merging since Colin is on vacation.

@colinsurprenant
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fully acked tail page of zero byte size prevents Queue open
4 participants