-
Notifications
You must be signed in to change notification settings - Fork 598
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
feat: try adding FragmentRelation in meta store #20035
base: main
Are you sure you want to change the base?
Conversation
…dispatch info Signed-off-by: Shanicky Chen <[email protected]>
…d to prelude Signed-off-by: Shanicky Chen <[email protected]>
5cf9ecb
to
a68fd78
Compare
…new structs/enums Signed-off-by: Shanicky Chen <[email protected]>
…prove result processing Signed-off-by: Shanicky Chen <[email protected]>
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
|
||
let mut fragment_relations = BTreeMap::new(); | ||
|
||
for (actor_id, dispatchers) in &new_actor_dispatchers { |
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.
Can you add some comments for it.
@@ -429,6 +429,35 @@ impl CatalogController { | |||
let inner = self.inner.write().await; | |||
let txn = inner.db.begin().await?; | |||
|
|||
let mut fragment_relations = BTreeMap::new(); | |||
|
|||
for (fragment, actors, actor_dispatchers) in &fragment_actors { |
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.
Ditto.
I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
This PR attempts to add a
FragmentRelation
table to eventually replace the existingActor
andActorDispatcher
tables, using dynamically generated Actors and Dispatchers.This PR currently only generates the
FragmentRelation
entity when inserting into theActorDispatcher
and then performs the insert; Our streaming logic doesn't use it.Part of #19106 .
Checklist
Documentation
Release note