demery-pivotal commented on a change in pull request #7111:
URL: https://github.com/apache/geode/pull/7111#discussion_r749786189



##########
File path: 
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/tier/sockets/DurableRegistrationDUnitTest.java
##########
@@ -413,13 +411,10 @@ public void run2() throws CacheException {
   public void testDurableClientWithRegistrationHA() {
 
     // Step 1: Start server1
+    PORT1 = this.server1VM
+        .invoke(() -> CacheServerTestUtil.createCacheServer(regionName, 
Boolean.TRUE));
     PORT2 = getRandomAvailableTCPPort();
 
-    PORT1 = ((Integer) this.server1VM
-        .invoke(() -> CacheServerTestUtil.createCacheServer(regionName, new 
Boolean(true))))
-            .intValue();
-
-

Review comment:
       How does this fix the flakiness? Is `getRandomAvailableTCPPort()` 
returning ports in the ephemeral port range? In the latest CI failure reported 
in GEODE-1537, the port number seems to be in the available port range, and not 
in the ephemeral port range.




-- 
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]


Reply via email to