-
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 #1229] [ENH] Add a CollectionAssignmentPolicy and move topic creation into SysDB using the policy #1237
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This was referenced Oct 12, 2023
Current dependencies on/for this PR: This comment was auto-generated by Graphite. |
Reviewer ChecklistPlease leverage this checklist to ensure your code review is thorough before approving Testing, Bugs, Errors, Logs, Documentation
System Compatibility
Quality
|
HammadB
changed the title
Add a CollectionAssignmentPolicy and move topic creation into SysDB using the policy
[ENH] [STACKED #1229] Add a CollectionAssignmentPolicy and move topic creation into SysDB using the policy
Oct 12, 2023
HammadB
changed the title
[ENH] [STACKED #1229] Add a CollectionAssignmentPolicy and move topic creation into SysDB using the policy
[STACKED #1229] [ENH] Add a CollectionAssignmentPolicy and move topic creation into SysDB using the policy
Oct 12, 2023
HammadB
force-pushed
the
hammad/coordinator_sysdb
branch
from
October 12, 2023 17:38
6310595
to
2b150e6
Compare
HammadB
force-pushed
the
hammad/topic_management_sysdb
branch
3 times, most recently
from
October 12, 2023 21:10
b200d36
to
fa502f1
Compare
This was referenced Oct 13, 2023
Ishiihara
approved these changes
Oct 13, 2023
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
HammadB
force-pushed
the
hammad/coordinator_sysdb
branch
3 times, most recently
from
October 13, 2023 23:20
f2cf8a6
to
b25c8bd
Compare
HammadB
added a commit
that referenced
this pull request
Oct 16, 2023
## Description of changes This PR is stacked on #1228, please TAL at that before this. *Summarize the changes made by this PR.* - Improvements & Bug fixes - n/a - New functionality - Introduced a grpc sysdb implementation. - Migrate the protobufs to support Null vs Presence where needed. - Added minimal protobuf definitions to implement the grpc coordinator - Add a mock grpc sysdb server that reimplements the core functionality in memory for testing. Will address the following open questions in stacked PRs! Open questions/issues: - [x] Collection <> Topic Mapping _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! - [x] Topic management moving to sysdb interface _This is conceptually simple, we make topic creation implicitly part of sysdb create collection_ I address this in #1237 - [x] We need to move the get_or_create concept into sysdb _This is conceptually simple, we just move this logic into sysdb and make it aware of it_ I address this in #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.
HammadB
force-pushed
the
hammad/topic_management_sysdb
branch
from
October 16, 2023 02:59
fa502f1
to
15d9182
Compare
HammadB
force-pushed
the
hammad/topic_management_sysdb
branch
from
October 16, 2023 03:18
15d9182
to
9792f60
Compare
HammadB
force-pushed
the
hammad/topic_management_sysdb
branch
from
October 16, 2023 04:14
9792f60
to
b78877a
Compare
HammadB
force-pushed
the
hammad/topic_management_sysdb
branch
from
October 16, 2023 04:24
b78877a
to
f4ef680
Compare
HammadB
added a commit
that referenced
this pull request
Oct 16, 2023
## Description of changes *Summarize the changes made by this PR.* - Improvements & Bug fixes - Move get_or_create logic into the sys db interface - New functionality - None added ## Test plan *How are these changes tested?* Existing tests as well as a new test at the sysdb level. - [x] Tests pass locally with `pytest` for python, `yarn test` for js ## Documentation Changes None, all changes are to internal interfaces.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of changes
Summarize the changes made by this PR.
- None
TODO:
Test plan
How are these changes tested?
Existing tests were modified with the refactor and ensured to pass.
Documentation Changes
None required