jdeppe-pivotal commented on a change in pull request #7111:
URL: https://github.com/apache/geode/pull/7111#discussion_r749893191
##########
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:
I believe what's happening is that `PORT2` is assigned an available port
but then the subsequent line, which starts a server, ends up using that port.
Later on, when something else tries to use `PORT2` (for another server) a bind
exception occurs because the port is already in use.
--
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]