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

[FIXED] FileStore: possible panic when unable to open an index file #1096

Merged
merged 1 commit into from
Oct 6, 2020

Conversation

kozlovic
Copy link
Member

@kozlovic kozlovic commented Oct 6, 2020

If an error occurs when trying to open an index file, the server
was incorrectly trying to unlock a data file that was possibly
not locked/opened. For instance in the case of expiring messages
from a slice that is not the current writing slice.

Resolves #1097

Signed-off-by: Ivan Kozlovic ivan@synadia.com

If an error occurs when trying to open an index file, the server
was incorrectly trying to unlock a data file that was possibly
not locked/opened. For instance in the case of expiring messages
from a slice that is not the current writting slice.

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 91.657% when pulling 65f3e19 on fix_panic_on_expire_msgs into 8f0eb07 on master.

Copy link
Member

@derekcollison derekcollison left a comment

Choose a reason for hiding this comment

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

LGTM

@kozlovic kozlovic merged commit f11f6f9 into master Oct 6, 2020
@kozlovic kozlovic deleted the fix_panic_on_expire_msgs branch October 6, 2020 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Panic during message expiration
3 participants