Skip to content

Commit 7362f67

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 e20ed7d commit 7362f67

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,8 @@ 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");
383+
final IgnoredException exRemoteLocator = IgnoredException
384+
.addIgnoredException("could not get remote locator information for remote site");
384385
try {
385386
InternalGatewaySenderFactory gateway =
386387
(InternalGatewaySenderFactory) cache.createGatewaySenderFactory();

0 commit comments

Comments
 (0)