未验证 提交 6b408ec0 编写于 作者: Y yukon 提交者: GitHub

Merge pull request #196 from fuyou001/ROCKETMQ-314-1

[ROCKETMQ-314] msg send back must sync change process queue msg size
......@@ -17,6 +17,7 @@
package org.apache.rocketmq.client.impl.consumer;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
......@@ -102,7 +103,7 @@ public class ProcessQueue {
try {
if (!msgTreeMap.isEmpty() && msg.getQueueOffset() == msgTreeMap.firstKey()) {
try {
msgTreeMap.remove(msgTreeMap.firstKey());
removeMessage(Collections.singletonList(msg));
} catch (Exception e) {
log.error("send expired msg exception", e);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册