mivanac commented on a change in pull request #7422: URL: https://github.com/apache/geode/pull/7422#discussion_r824498464
########## File path: geode-core/src/main/java/org/apache/geode/internal/cache/wan/AbstractGatewaySenderEventProcessor.java ########## @@ -469,6 +469,16 @@ protected void processQueue() { boolean interrupted = Thread.interrupted(); try { if (resetLastPeekedEvents) { + if (!batchIdToEventsMap.isEmpty()) { + for (Map.Entry<Integer, List<GatewaySenderEventImpl>[]> entry : batchIdToEventsMap + .entrySet()) { + for (GatewaySenderEventImpl event : entry.getValue()[0]) { + if (!event.getPossibleDuplicate()) { + event.setPossibleDuplicate(true); + } + } + } + } resetLastPeekedEvents(); resetLastPeekedEvents = false; } Review comment: Thanks for comment. Updated. Logic is that whenever events that are unqueued, we return to queue, mark hem as possible duplicate. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@geode.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org