We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e9f9a1 commit b1be079Copy full SHA for b1be079
java/client/src/main/java/org/apache/rocketmq/client/java/impl/consumer/PushConsumerImpl.java
@@ -499,7 +499,7 @@ int cacheMessageCountThresholdPerQueue() {
499
}
500
// If a per-queue limit is explicitly configured, use it directly.
501
if (maxCacheMessageCountEachQueue > 0) {
502
- return maxCacheMessageCountEachQueue;
+ return Math.max(maxCacheMessageCountEachQueue, maxCacheMessageCount / size);
503
504
return Math.max(1, maxCacheMessageCount / size);
505
0 commit comments