Details
-
Type:
Bug
-
Status: Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Component/s: camel-core
-
Labels:None
-
Estimated Complexity:Novice
Description
Current implementation of IdempotentConsumer.java has very strange check on whether IdempotentRepository contains the key - if it's ExchangeIdempotentRepository then the result of "contains()" check is not inverted(i.e. there is no NOT operator), while for other types of IdempotentRepository it IS inverted with "!".
// check if we already have the key
if (idempotentRepository instanceof ExchangeIdempotentRepository)
else
{ newKey = !idempotentRepository.contains(messageId); }Attachments
Issue Links
- links to