Skip to content

Commit

Permalink
通过设置rondom=1来使主题其他broker也可以拉到重试队列消息
Browse files Browse the repository at this point in the history
  • Loading branch information
majun87 committed Sep 7, 2020
1 parent 7d771cb commit 55b44d7
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,6 @@ public boolean isRetry(Consumer consumer) throws JoyQueueException {
} else if (!masterPartitionList.contains((short) 0)) {
return false;
}
/*if (!retry.booleanValue() || !masterPartitionList.contains((short) 0)) {
logger.debug("retry enable is false.");
return false;
}*/

int val = random.nextInt(randomBound);
// 重试管理中获取从重试分区消费的概率
Expand Down

0 comments on commit 55b44d7

Please sign in to comment.