Skip to content

Commit

Permalink
Enhanced remove_stream frag map unwrap in WorkerNodeManager
Browse files Browse the repository at this point in the history
  • Loading branch information
shanicky committed Feb 7, 2024
1 parent 6004031 commit 9873e9e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/frontend/src/scheduler/worker_node_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,10 @@ impl WorkerNodeManager {

pub fn remove_streaming_fragment_mapping(&self, fragment_id: &FragmentId) {
let mut guard = self.inner.write().unwrap();
guard.streaming_fragment_vnode_mapping.remove(fragment_id);
// todo
guard
.streaming_fragment_vnode_mapping
.remove(fragment_id)
.unwrap();
}

/// Returns fragment's vnode mapping for serving.
Expand Down

0 comments on commit 9873e9e

Please sign in to comment.