-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[STACKED #1228] [ENH] Grpc Coordinator/SysDB #1229
Conversation
Reviewer ChecklistPlease leverage this checklist to ensure your code review is thorough before approving Testing, Bugs, Errors, Logs, Documentation
System Compatibility
Quality
|
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.
todo: factor out the services that are not core data models
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.
Will do in follow-up PR, is a separate concern.
0cdb5d7
to
6310595
Compare
Current dependencies on/for this PR: This comment was auto-generated by Graphite. |
@@ -35,8 +37,19 @@ def sqlite_persistent() -> Generator[SysDB, None, None]: | |||
shutil.rmtree(save_path) | |||
|
|||
|
|||
def grpc_with_mock_server() -> Generator[SysDB, None, None]: |
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.
Adds a test fixture
test failures are just a config key bug, will patch. |
6310595
to
2b150e6
Compare
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.
LGTM
6fd33f9
to
f35e576
Compare
f35e576
to
f2cf8a6
Compare
f2cf8a6
to
b25c8bd
Compare
… creation into SysDB using the policy (#1237) ## Description of changes *Summarize the changes made by this PR.* - Improvements & Bug fixes - Adds a CollectionAssignmentPolicy and moves topic creation down into SysDB - Changes SysDB to not accept a Collection Object in create_collection() but params instead - New functionality - None TODO: - [ ] delete topic should also live in the sysdb now. ## Test plan *How are these changes tested?* Existing tests were modified with the refactor and ensured to pass. ## Documentation Changes None required
Description of changes
This PR is stacked on #1228, please TAL at that before this.
Summarize the changes made by this PR.
Will address the following open questions in stacked PRs!
Open questions/issues:
This requires some thought if we use hashing then we can just map the collection onto a topic and store it. Will we ever want to shard a collection across topics?
I don't think this is needed at this moment!
This is conceptually simple, we make topic creation implicitly part of sysdb create collection
I address this in [STACKED #1229] [ENH] Add a CollectionAssignmentPolicy and move topic creation into SysDB using the policy #1237
This is conceptually simple, we just move this logic into sysdb and make it aware of it
I address this in [STACKED #1237] [ENH] Move get_or_create into sysdb #1242
Test plan
How are these changes tested?
I added a mock gRPC server that implements the basic functionality of sysdb with in memory data structures.
We will run the coordinator tests with this impl in the bin/cluster test once the go coordinator service is ready from @Ishiihara
Documentation Changes
None required.