HDFS-10306. SafeModeMonitor should not leave safe mode if name system is starting active service. Contributed by Mingliang Liu.

This commit is contained in:
Jing Zhao 2016-04-18 18:05:49 -07:00
parent cb3ca460ef
commit be0bce1b71

View File

@ -623,7 +623,9 @@ public void run() {
* the extension time has passed.
*/
private boolean canLeave() {
if (timeToLeaveExtension() > 0) {
if (namesystem.inTransitionToActive()) {
return false;
} else if (timeToLeaveExtension() > 0) {
reportStatus("STATE* Safe mode ON, in safe mode extension.", false);
return false;
} else if (!areThresholdsMet()) {