Uploaded image for project: 'Bigtop'
  1. Bigtop
  2. BIGTOP-1127

Make return value of HBase RegionServer init script more explicit

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.7.0
    • None
    • Init scripts
    • None

    Description

      In the case statement at the very bottom of /etc/init.d/hbase-regionserver, we are picking up the return code implicitly. We should perhaps be explicitly collecting the code returned by each of the functions (start, stop, etc.) in a new variable and return that variable in the end instead of $?. This might make the code less fragile when being changed.

      Attachments

        1. BIGTOP-1127.patch
          1 kB
          Xin Hao

        Activity

          People

            Unassigned Unassigned
            mackrorysd Sean Mackrory
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: