-
Notifications
You must be signed in to change notification settings - Fork 161
feat(BA-686): Implement Raftify KVS #3838
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
base: feat/create-raftify-client
Are you sure you want to change the base?
Conversation
""" | ||
===================== Leadership and Redirection ===================== | ||
""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh i just added it for my personal readability. i'll remove it before the merge
apply_res = ApplyResult( | ||
key=message.key, | ||
old_value=old_value, | ||
new_value=new_value, | ||
revision=self._revision, | ||
) | ||
|
||
logger.debug(f"Applied: {apply_res}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you need to create an object just for debug logging?
class HashStore: | ||
_store: dict[str, Any] | ||
_loop: asyncio.AbstractEventLoop | ||
_revision: int | ||
|
||
def __init__(self) -> None: | ||
self._store: dict[str, Any] = {} | ||
self._loop = asyncio.get_running_loop() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove unused _loop field.
resolves #3637 (BA-686)
about
Implements the Raftify KVS which emulates the APIs that
AsyncEtcd
offers. Allows raftify to fully cover the functions that etcd provides.Checklist: (if applicable)
ai.backend.test
docs
directory