Arina Ielchiieva created DRILL-6227:
---------------------------------------

             Summary: Graceful shutdown should fail if unable to kill drillbit 
during some timeout rather then trying indefinitely
                 Key: DRILL-6227
                 URL: https://issues.apache.org/jira/browse/DRILL-6227
             Project: Apache Drill
          Issue Type: Bug
            Reporter: Arina Ielchiieva


In drillbit.sh graceful shutdown calls drillbit stop with {{kill_drillbit}} set 
to false.
{code}
kill_drillbit=false
stop_bit $kill_drillbit
{code}
It means that {{waitForProcessEnd}} will be called with the same property. When 
{{waitForProcessEnd}} is called with {{kill_drillbit}} set to false, this 
method will try to kill drillbit using {{kill -0}} until succeeds. So if at 
some point it won't be able, it may run forever. Need to have some timeout when 
{{waitForProcessEnd}} will stop trying to kill drillbit and report an error.




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to