mirror of https://github.com/apache/activemq.git
https://issues.apache.org/jira/browse/AMQ-5960 - durable sub pendingQueueSize after force shutdown
This commit is contained in:
parent
734fb7dda3
commit
4ab55f13ae
|
@ -1347,6 +1347,13 @@ public abstract class MessageDatabase extends ServiceSupport implements BrokerSe
|
|||
// be wrong..
|
||||
sd.locationIndex.put(tx, location, previous);
|
||||
metadata.lastUpdate = location;
|
||||
// remove ack positions
|
||||
Iterator<Entry<String, SequenceSet>> it = sd.ackPositions.iterator(tx);
|
||||
while (it.hasNext()) {
|
||||
Entry<String, SequenceSet> entry = it.next();
|
||||
entry.getValue().remove(id);
|
||||
}
|
||||
|
||||
}
|
||||
// record this id in any event, initial send or recovery
|
||||
metadata.producerSequenceIdTracker.isDuplicate(command.getMessageId());
|
||||
|
|
Loading…
Reference in New Issue