-
Notifications
You must be signed in to change notification settings - Fork 594
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
refactor: bump await-tree
to 0.2
#16035
Conversation
Signed-off-by: Bugen Zhao <[email protected]>
Signed-off-by: Bugen Zhao <[email protected]>
Signed-off-by: Bugen Zhao <[email protected]>
Signed-off-by: Bugen Zhao <[email protected]>
@@ -744,8 +738,7 @@ impl LocalBarrierWorker { | |||
pub fn spawn( | |||
env: StreamEnvironment, | |||
streaming_metrics: Arc<StreamingMetrics>, | |||
await_tree_reg: Option<Arc<Mutex<await_tree::Registry<ActorId>>>>, | |||
barrier_await_tree_reg: Option<Arc<Mutex<await_tree::Registry<u64>>>>, |
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.
These two registries are merged together and trees can be distinguished by key types.
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.
cool
.map(|(k, v)| (k, v.to_string())) | ||
.collect(); | ||
let actor_traces = if let Some(reg) = self.stream_mgr.await_tree_reg() { | ||
reg.collect::<Actor>() |
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.
😮
Signed-off-by: Bugen Zhao <[email protected]>
Signed-off-by: Bugen Zhao <[email protected]>
Signed-off-by: Bugen Zhao [email protected]I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
Improvements introduced in
await-tree
0.2:Registry
now provides interior mutability. No need for wrapping likeArc<Mutex<..>>
.This is a preparation for #14131.
Checklist
./risedev check
(or alias,./risedev c
)Documentation
Release note
If this PR includes changes that directly affect users or other significant modifications relevant to the community, kindly draft a release note to provide a concise summary of these changes. Please prioritize highlighting the impact these changes will have on users.