mirror of
https://github.com/apache/activemq.git
synced 2025-02-28 05:09:07 +00:00
AMQ-6924 - Fix StoreDurableSubscriberCursor non-persistent message add
StoreDurableSubscriberCursor now properly uses a timeout value when attempting to add to the temporary store for non-persistent messages to prevent an indefinite wait on free space (cherry picked from commit 5e2adc0ed7dfe2e827bdef878f1c8cde12ff5773)
This commit is contained in:
parent
d6b703bcb1
commit
2ca46c561b
@ -188,7 +188,7 @@ public class StoreDurableSubscriberCursor extends AbstractPendingMessageCursor {
|
||||
Message msg = node.getMessage();
|
||||
if (isStarted()) {
|
||||
if (!msg.isPersistent()) {
|
||||
nonPersistent.addMessageLast(node);
|
||||
nonPersistent.tryAddMessageLast(node, wait);
|
||||
}
|
||||
}
|
||||
if (msg.isPersistent()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user