Skip to content

Conversation

@thorfour
Copy link
Contributor

@thorfour thorfour commented Feb 7, 2024

Adds a unit test that artificially causes a race between snapshots and compactions to cause newer data than the snapshot tx to end up in the snapshot.

However due to index insert writes rejecting inserts with a tx less than what's already been inserted it ensures that we don't end up with duplicate data.

There was a bug with the in-memory LSM that this test found and was fixed. It wasn't correctly setting the compaction tx.

In-memory LSM wasn't correctly setting the tx on the compacted part
@thorfour thorfour merged commit 5727800 into main Feb 7, 2024
@thorfour thorfour deleted the test-snapshot-isolation branch February 7, 2024 15:17
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.

2 participants