File tree 1 file changed +3
-2
lines changed
exec/java-exec/src/main/java/org/apache/drill/exec/server
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -233,8 +233,9 @@ public void run() throws Exception {
233
233
manager .getContext ().getRemoteFunctionRegistry ().init (context .getConfig (), storeProvider , coord );
234
234
webServer .start ();
235
235
//Discovering HTTP port (in case of port hunting)
236
+ int httpPort = -1 ;
236
237
if (webServer .isRunning ()) {
237
- int httpPort = getWebServerPort ();
238
+ httpPort = getWebServerPort ();
238
239
md = md .toBuilder ().setHttpPort (httpPort ).build ();
239
240
}
240
241
registrationHandle = coord .register (md );
@@ -244,7 +245,7 @@ public void run() throws Exception {
244
245
shutdownHook = new ShutdownThread (this , new StackTrace ());
245
246
Runtime .getRuntime ().addShutdownHook (shutdownHook );
246
247
gracefulShutdownThread .start ();
247
- logger .info ("Startup completed ( {} ms). " , w .elapsed (TimeUnit .MILLISECONDS ));
248
+ logger .info ("Startup completed in {} ms and running on port: {} " , w .elapsed (TimeUnit .MILLISECONDS ), httpPort );
248
249
}
249
250
250
251
/**
You can’t perform that action at this time.
0 commit comments