Skip to content

Commit e20ed7d

Browse files
committed
GEODE-10465: Add ignored exception for Gateway Sender remote locator connection error
The SeveralGatewayReceiversWithSamePortAndHostnameForSendersTest was failing with a fatal error "GatewaySender ln could not get remote locator information for remote site 2". This is a known transient timing issue that occurs when gateway senders attempt to connect to remote locators during test setup before the remote locators are fully available. Added IgnoredException for "could not get remote locator information for remote site" in the createGatewaySender method to handle this expected transient error, consistent with the pattern used by other WAN tests in the codebase. This allows the gateway sender to eventually establish the connection once the remote locators are ready, while preventing test failures due to expected startup timing issues.
1 parent 172176c commit e20ed7d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

geode-assembly/src/acceptanceTest/java/org/apache/geode/cache/wan/SeveralGatewayReceiversWithSamePortAndHostnameForSendersTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,7 @@ public static void createGatewaySender(VM vm, String dsName, int remoteDsId,
380380
boolean enforceThreadsConnectToSameReceiver) {
381381
vm.invoke(() -> {
382382
final IgnoredException exln = IgnoredException.addIgnoredException("Could not connect");
383+
final IgnoredException exRemoteLocator = IgnoredException.addIgnoredException("could not get remote locator information for remote site");
383384
try {
384385
InternalGatewaySenderFactory gateway =
385386
(InternalGatewaySenderFactory) cache.createGatewaySenderFactory();
@@ -392,6 +393,7 @@ public static void createGatewaySender(VM vm, String dsName, int remoteDsId,
392393

393394
} finally {
394395
exln.remove();
396+
exRemoteLocator.remove();
395397
}
396398
});
397399
}

0 commit comments

Comments
 (0)