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: Empty() should remove all message files (dat/idx) #1011

Merged
merged 1 commit into from Jan 17, 2020

Conversation

kozlovic
Copy link
Member

Doing some manual tests with removing the single .dat file for
a channel, I realized that in cluster mode, when the channel message
store was being emptied, the .idx file was not removed, which then
caused a problem since the info was added to the index file while
it should have been replaced.
Ensure that all files matching the messages files pattern are removed
during an Empty() call.

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

Doing some manual tests with removing the single .dat file for
a channel, I realized that in cluster mode, when the channel message
store was being emptied, the .idx file was not removed, which then
caused a problem since the info was added to the index file while
it should have been replaced.
Ensure that all files matching the messages files pattern are removed
during an Empty() call.

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

Coverage Status

Coverage increased (+0.006%) to 91.998% when pulling 4dedf18 on fix_filestore_empty into 5751408 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 c87c9b0 into master Jan 17, 2020
@kozlovic kozlovic deleted the fix_filestore_empty branch January 17, 2020 23: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.

None yet

3 participants