mivanac commented on a change in pull request #7144:
URL: https://github.com/apache/geode/pull/7144#discussion_r782936765
##########
File path:
geode-wan/src/distributedTest/java/org/apache/geode/internal/cache/wan/parallel/ParallelGatewaySenderOperationsDUnitTest.java
##########
@@ -1185,6 +1188,84 @@ public void
testParallelGWSenderUpdateFiltersWhilePuttingOnOneDispatcThread() th
}
+ /**
+ * Put entries in region after gateway sender is stopped. Count number of
PQRM messages sent.
+ */
+ @Test
+ public void
testDroppedEventsSignalizationToSecondaryQueueWhileSenderStopped() {
+ int lnPort = vm0.invoke(() -> createFirstLocatorWithDSId(1));
+ int nyPort = vm1.invoke(() -> createFirstRemoteLocator(2, lnPort));
+
+ createSendersReceiversAndPartitionedRegion(lnPort, nyPort, false, true);
+
+ // make sure all the senders are running before doing any puts
+ waitForSendersRunning();
+
+ // FIRST RUN: now, the senders are started. So, start the puts
+ vm4.invoke(() -> doPuts(getUniqueName() + "_PR", 100));
+
+ vm2.invoke(() -> validateRegionSizeRemainsSame(getUniqueName() + "_PR",
100));
+
+ stopSenders();
+
+ waitForAllSendersNotRunning();
+
+ vm4.invoke(() -> {
+ DistributionMessageObserver.setInstance(new CountSentPQRMObserver());
+ });
+ vm5.invoke(() -> {
+ DistributionMessageObserver.setInstance(new CountSentPQRMObserver());
+ });
+ vm6.invoke(() -> {
+ DistributionMessageObserver.setInstance(new CountSentPQRMObserver());
+ });
+ vm7.invoke(() -> {
+ DistributionMessageObserver.setInstance(new CountSentPQRMObserver());
+ });
+
+ // SECOND RUN: keep one thread doing puts to the region
+ vm4.invoke(() -> doPutsFrom(getUniqueName() + "_PR", 100, 200));
+
+ vm2.invoke(() -> validateRegionSizeRemainsSame(getUniqueName() + "_PR",
100));
+
+ int cntPQRM1 = vm4.invoke(() -> {
Review comment:
updated
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]