mirror of
https://github.com/apache/rocketmq.git
synced 2026-09-24 16:04:00 +08:00
#ROCKETMQ-314# msg send back must sync change process queue msg size .
(cherry picked from commit 0dee922)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user