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

MoveMutableSegmentForward should wait until all writes to the previous mutable segment finalized. #100

Conversation

koculu
Copy link
Owner

@koculu koculu commented Oct 15, 2024

Recently, the internal operation index (op index) per mutable segment was exposed to simplify the replication process. See Issue #93 for more details.

Initially, the op indexes were designed to increment only within the scope of their respective mutable segment. Consequently, when switching between mutable segments, the op index order is not guaranteed to remain incremental.

To ensure consistency, improve the mutable segment switch process to guarantee that the op index order remains incremental across segment transitions.

@koculu koculu merged commit 82774e0 into main Oct 16, 2024
1 check passed
@koculu koculu deleted the 99-bug-the-order-of-opindexes-are-not-guranteed-to-be-incremental-during-mutable-segment-switch branch October 16, 2024 04:44
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.

[BUG] The order of opIndexes are not guaranteed to be incremental during mutable segment switch
1 participant