Kurtiscwright commented on code in PR #18216:
URL: https://github.com/apache/iceberg/pull/18216#discussion_r4100349710


##########
open-api/src/testFixtures/java/org/apache/iceberg/rest/RESTServerExtension.java:
##########
@@ -80,6 +80,10 @@ public void beforeAll(ExtensionContext extensionContext) 
throws Exception {
       }
 
       this.client = RCKUtils.initCatalogClient(config);
+    } else if (findFreePort) {
+      // no local server was started, so there is no port to resolve the 
placeholder to; drop it so
+      // that callers merging config() into client properties do not point a 
client at port 0
+      config.remove(RESTCatalogServer.REST_PORT);

Review Comment:
   Ahh I didn't notice the non-local mode. I'll see about adding a check for 
local mode before passing this free port helper.



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to