Bigtop
  1. Bigtop
  2. BIGTOP-729

zookeeper initd script status doesn't work

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: backlog
    • Component/s: Init scripts
    • Labels:
      None

      Description

      I have a situation where puppet is continually attempting to restart zookeeper. It appears as if /etc/init.d/zookeeper-server status returns the wrong answer in some cases. I can workaround this by setting the COLUMNS environment variable just before the ps in hadoop_is_process_alive().

      What is actually setting (or unsetting) this is a mystery, but I don't think its right for the init script to break.

      $ COLUMNS=80 ps -fp 2539 | grep 2539 | grep zookeeper >/dev/null ; echo $?
      1
      $ COLUMNS=1000 ps -fp 2539 | grep 2539 | grep zookeeper >/dev/null ; echo $?
      0
      

      It seems to me as if this method of using ps to check the daemon status is too fragile.

        Activity

        Roman Shaposhnik made changes -
        Fix Version/s backlog [ 12324373 ]
        Fix Version/s 0.6.0 [ 12323895 ]
        Roman Shaposhnik made changes -
        Fix Version/s 0.6.0 [ 12323895 ]
        Fix Version/s 0.5.0 [ 12321865 ]
        Roman Shaposhnik made changes -
        Assignee Roman Shaposhnik [ rvs ]
        Roman Shaposhnik made changes -
        Field Original Value New Value
        Fix Version/s 0.5.0 [ 12321865 ]
        Hide
        Roman Shaposhnik added a comment -

        Brian, this is definitely unsettling. Now, the good news is that we've got BIGTOP-22 (which I really hope to fix for the upcoming Bigtop 0.5.0 release). As part of that JIRA I would like to transition to the LSB-compliant code for checking status of services, etc.

        Show
        Roman Shaposhnik added a comment - Brian, this is definitely unsettling. Now, the good news is that we've got BIGTOP-22 (which I really hope to fix for the upcoming Bigtop 0.5.0 release). As part of that JIRA I would like to transition to the LSB-compliant code for checking status of services, etc.
        Brian Sutherland created issue -

          People

          • Assignee:
            Roman Shaposhnik
            Reporter:
            Brian Sutherland
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:

              Development