Skip to content

Commit

Permalink
[ISSUE #2531]⚡️Optimize QueryAssignmentProcessor do_load_balance🚀 (#2532
Browse files Browse the repository at this point in the history
)
  • Loading branch information
mxsm authored Feb 7, 2025
1 parent 60daed9 commit cfcaa86
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions rocketmq-broker/src/processor/query_assignment_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,11 +252,8 @@ impl<MS: MessageStore> QueryAssignmentProcessor<MS> {
.broker_runtime_inner
.consumer_manager()
.get_consumer_group_info(consumer_group);
let mut cid_all = if let Some(consumer_group_info) = consumer_group_info {
consumer_group_info.get_all_client_ids()
} else {
vec![]
};
let mut cid_all =
consumer_group_info.map_or_else(Vec::new, |info| info.get_all_client_ids());
if cid_all.is_empty() {
warn!(
"QueryLoad: no assignment for group[{}] topic[{}], get consumer id list \
Expand Down

0 comments on commit cfcaa86

Please # to comment.