LuciferYang commented on code in PR #2402:
URL: https://github.com/apache/uniffle/pull/2402#discussion_r1995071821


##########
common/src/main/java/org/apache/uniffle/common/web/JettyServer.java:
##########
@@ -169,13 +169,15 @@ public Server getServer() {
     return this.server;
   }
 
-  public void start() throws Exception {
+  public int start() throws Exception {
     try {
       server.start();
+      httpPort = ((ServerConnector) server.getConnectors()[0]).getLocalPort();

Review Comment:
   Is there anything that ensures `server.getConnectors()[0]` is an instance of 
the `ServerConnector` type?
   
   



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