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

Prevent data from re-appearing on startup in some cases #14232

Merged
merged 2 commits into from
Jul 5, 2019
Merged

Conversation

e-dard
Copy link
Contributor

@e-dard e-dard commented Jun 28, 2019

Closes #14229

This PR fixes a strange bug where data can re-appear after a restart. The issue arises if the cache is snapshotted before a write lands in the WAL. In such a scenario, the Engine thinks that the WAL is empty, and decides it does not need truncating when the cache snapshot completes.

The data in the WAL then persists after the snapshot, and is then replayed again on startup. The catch is that if a user attempts to delete this data post-snapshot, no delete entry will be added to the WAL because the cache is empty. So when the replay happens there is no delete command to replay.

@e-dard e-dard added this to the 1.8 milestone Jun 28, 2019
@tmgordeeva tmgordeeva self-requested a review June 28, 2019 15:27
@e-dard e-dard merged commit ec882c3 into 1.8 Jul 5, 2019
@e-dard e-dard deleted the er-fix-wal branch July 5, 2019 16:27
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.

2 participants