https://issues.apache.org/jira/browse/AMQ-5960 - durable sub pendingQueueSize after force shutdown

This commit is contained in:
Dejan Bosanac 2015-09-10 11:10:13 +02:00
parent 734fb7dda3
commit 4ab55f13ae
1 changed files with 7 additions and 0 deletions

View File

@ -1347,6 +1347,13 @@ public abstract class MessageDatabase extends ServiceSupport implements BrokerSe
// be wrong.. // be wrong..
sd.locationIndex.put(tx, location, previous); sd.locationIndex.put(tx, location, previous);
metadata.lastUpdate = location; 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 // record this id in any event, initial send or recovery
metadata.producerSequenceIdTracker.isDuplicate(command.getMessageId()); metadata.producerSequenceIdTracker.isDuplicate(command.getMessageId());