Details
Description
In our environment, we have several ActvieMQ CPP clients sending persistent messages continuously to a ActiveMQ 5.1 broker. In normal condition the broker works fine until it ran out of disk space. At that point the client would receive out of disk space advisory message AFTER sending the message, therefore the message should be removed from broker, however, the message are kept in the memory due to a problem in the DataFileAppender & AsyncDatamanager, when the disk is full, the message is saved in the inflightWrites map but never taken out since the enqueue will fail due to IOException.
synchronized (this) {
// Find the position where this item will land at.
DataFile dataFile = dataManager.allocateLocation(location);
if( !sync )
batch = enqueue(dataFile, write);
}
and
synchronized (this)
{ // Find the position where this item will land at. DataFile dataFile = dataManager.allocateLocation(location); inflightWrites.put(new WriteKey(location), write); batch = enqueue(dataFile, write); }Attachments
Attachments
Issue Links
- depends upon
-
AMQ-724 Stomp client is not removed from the broker on client disconnect
- Resolved