Bigtop
  1. Bigtop
  2. BIGTOP-691

flume gets killed too fast when the service is asked to stop

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.4.0
    • Fix Version/s: 0.5.0
    • Component/s: Init scripts
    • Labels:
      None

      Description

      The flume stop script does the following:

      kill -TERM $

      {FLUME_PID} &>/dev/null
      sleep 5
      kill -KILL ${FLUME_PID}

      &>/dev/null

      It is not recommended to kill -9 flume while it is shutting down.

      The correct approach is to poll to see if the pid is up every second or so, after sending the intitial TERM signal, then after some long period of time (60 seconds) if the pid is still alive then kill -9 would be appropriate.

      1. BIGTOP-691.patch.txt
        0.8 kB
        Roman Shaposhnik

        Activity

        Hide
        Patrick Taylor Ramsey added a comment -

        +1 LGTM.

        Show
        Patrick Taylor Ramsey added a comment - +1 LGTM.

          People

          • Assignee:
            Roman Shaposhnik
            Reporter:
            Roman Shaposhnik
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development