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

[fastx distsys] Refactor Sequence number #37

Closed
patrickkuo opened this issue Dec 8, 2021 · 2 comments · Fixed by #50
Closed

[fastx distsys] Refactor Sequence number #37

patrickkuo opened this issue Dec 8, 2021 · 2 comments · Fixed by #50
Assignees

Comments

@patrickkuo
Copy link
Contributor

In the current design, each client have one sequence number counter next_sequence_number to keep track of the client's certificate history, however this become a problem when we try to retrieve certificate from authority because we don't record the association between object id and sequence number, we don't know which authority to query from for a particular sequence number.

The current work around is looping through each authorities until we have a hit, but this is inefficient.

@patrickkuo patrickkuo self-assigned this Dec 8, 2021
@patrickkuo
Copy link
Contributor Author

I think the solution is to have a sequence number per object, so each shard will have its own sequence number.

Alternatively, we can simply record the relationship by keeping a Map of ObjectID to Sequence number in ClientState

@sblackshear
Copy link
Collaborator

I think a sequence number per object is indeed the way to go (similar to what's being done on the authority side in #39).

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 a pull request may close this issue.

2 participants