sohami closed pull request #1424: DRILL-6663: Fixed shutdown button in Web UI
URL: https://github.com/apache/drill/pull/1424
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/exec/java-exec/src/main/resources/rest/index.ftl 
b/exec/java-exec/src/main/resources/rest/index.ftl
index 61e942acb4a..3b2be64ed07 100644
--- a/exec/java-exec/src/main/resources/rest/index.ftl
+++ b/exec/java-exec/src/main/resources/rest/index.ftl
@@ -435,6 +435,10 @@
             let rowElem = $(shutdownBtn).parent().parent();
             let hostAddr = 
$(rowElem).find('#address').contents().get(0).nodeValue.trim();
             let hostPort = $(rowElem).find('#httpPort').html();
+            // Always use the host address from the url for the current 
Drillbit. For details refer DRILL-6663
+            if ((rowElem.find("#current").html() == "Current")) {
+              hostAddr = location.hostname;
+            }
             let host = hostAddr+":"+hostPort
 
             if (confirm("Are you sure you want to shutdown Drillbit running on 
" + host + " node?")) {


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to