Github user kkhatua commented on a diff in the pull request:

    https://github.com/apache/drill/pull/1203#discussion_r180296333
  
    --- Diff: 
exec/java-exec/src/main/java/org/apache/drill/exec/service/ServiceEngine.java 
---
    @@ -102,6 +105,7 @@ public DrillbitEndpoint start() throws 
DrillbitStartupException, UnknownHostExce
         DrillbitEndpoint partialEndpoint = DrillbitEndpoint.newBuilder()
             .setAddress(hostName)
             .setUserPort(userPort)
    +        .setHttpPort(httpPort)
    --- End diff --
    
    That's tricky. The webserver doesn't come up until after the Endpoint is 
created and ready. One possible solution would be to perform the port hunt 
before the endpoint, and assign it to a newly instantiated webserver after the 
Endpoint is created.


---

Reply via email to