Details
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