Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-6023 Graceful shutdown improvements (umbrella jira)
  3. DRILL-6227

Graceful shutdown should fail if unable to kill drillbit during some timeout rather then trying indefinitely

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.12.0
    • None
    • None
    • None

    Description

      In drillbit.sh graceful shutdown calls drillbit stop with kill_drillbit set to false.

      kill_drillbit=false
      stop_bit $kill_drillbit
      

      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.

      Attachments

        Activity

          People

            vdonapati Venkata Jyothsna Donapati
            arina Arina Ielchiieva
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: