Skip to content

Conversation

iamaleksey
Copy link
Member

patch by Aleksey Yeschenko; reviewed by Abe Ratnofsky for CASSANDRA-20882

@iamaleksey iamaleksey requested a review from aratno September 3, 2025 16:02
@iamaleksey iamaleksey self-assigned this Sep 3, 2025
localWitnessed = Offsets.Mutable.copy(witnessedOffsets.get(localNodeId));

witnessedOffsets.convertToPrimitiveMap(witnessed);
persistedOffsets.convertToPrimitiveMap(persisted);
Copy link
Contributor

Choose a reason for hiding this comment

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

Would be good to make this incremental in the future, since every witnessed offset will eventually be persisted and reconciled

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not sure about this one. We must overwrite the entire value of each list in the system table because of the representation, but that shouldn't be a big deal - the size of each list should be roughly the same - the head, with not gaps, collapsed into one range, plus the slightly sparse tail. I don't see how to make it incremental in this context, or what it'd bring. I could easily be missing something though.

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