Skip to content

Add vector clocks to the structs that are stored in the state store. #1724

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

calavera
Copy link
Contributor

Context

This is a precondition to address #1711. Instead of making all the changes at once. I thought it'd be better to introduce vector clocks first, and then start using them as necessary.

What

Implement a simple vector clock using AtomicU64 and add it to the structures that are serialized into the state store.

The clock is not used for anything at the moment, allowing us to introduce CAS semantics gradually over futures changes.

Testing

I'm adding tests for the new builders, and updating existent tests.

Contribution Checklist

  • If a Python package was changed, please run make fmt in the package directory.
  • If the server was changed, please run make fmt in server/.
  • Make sure all PR Checks are passing.

Implement a simple vector clock using AtomicU64 and add it to the structures that are serialized into the state store.

The clock is not used for anything at the moment, allowing us to introduce CAS semantics gradually over futures changes.
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.

1 participant