Details
-
Sub-task
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.12.0
-
None
-
None
-
None
Description
DRILL-4286 introduces graceful shutdown but its js part needs improvement:
a. ajax call do not handle errors, so when error occurs it is just swallowed.
b. there are some unused and / or unnecessary variables usage
c. shutdown functionality is disabled when user is not an admin but some other ajax calls are still being executed, for example, port number, number of queries, grace period. All that can be also can be disabled when user is not an admin.
d. there are many ajax calls which can be factored out in dedicated js file.
Other fixes:
a. all shutdown functionality reside in DrillRoot class, it can be factored out in shutdown specific class where all shutdown functionality will be allowed only for admin on class level, currently we marked in on the level (see DRILL-6019).
b. issue described in DRILL-6021.