INT-2833 Fix Test Race Condition
Empty message group expiry used a < test instead of <=. This caused the group in the test to be not deleted when it was expected to be.
This commit is contained in:
@@ -290,7 +290,7 @@ public abstract class AbstractCorrelatingMessageHandler extends AbstractMessageH
|
||||
* groups. A longer timeout for empty groups can be enabled by
|
||||
* setting minimumTimeoutForEmptyGroups.
|
||||
*/
|
||||
removeGroup = lastModifiedNow < (System.currentTimeMillis() - this.minimumTimeoutForEmptyGroups);
|
||||
removeGroup = lastModifiedNow <= (System.currentTimeMillis() - this.minimumTimeoutForEmptyGroups);
|
||||
if (removeGroup && logger.isDebugEnabled()) {
|
||||
logger.debug("Removing empty group: " + group.getGroupId());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user