Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-10627

A logic mistake in HRegionServer isHealthy

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.96.2, 0.98.1, 0.99.0, 0.94.18
    • None
    • None
    • Reviewed

    Description

      After visiting the isHealthy in HRegionServer, I think there is a logic mistake.

          // Verify that all threads are alive
          if (!(leases.isAlive()
              && cacheFlusher.isAlive() && hlogRoller.isAlive()
              && this.compactionChecker.isAlive())   <---- logic wrong here
              && this.periodicFlusher.isAlive()) {
            stop("One or more threads are no longer alive -- stop");
            return false;
          }
      

      which should be

          // Verify that all threads are alive
          if (!(leases.isAlive()
              && cacheFlusher.isAlive() && hlogRoller.isAlive()
              && this.compactionChecker.isAlive()
              && this.periodicFlusher.isAlive())) {
            stop("One or more threads are no longer alive -- stop");
            return false;
          }
      

      Please finger out if i am wrong. Thx

      Attachments

        1. HBASE-10627-trunk-v1.diff
          0.9 kB
          Anoop Sam John
        2. HBASE-10627-0.94-v1.diff
          0.8 kB
          Shaohui Liu

        Activity

          People

            liushaohui Shaohui Liu
            liushaohui Shaohui Liu
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: