HDFS-10306. SafeModeMonitor should not leave safe mode if name system is starting active service. Contributed by Mingliang Liu.
(cherry picked from commit be0bce1b71
)
This commit is contained in:
parent
a69b6b1e8b
commit
bf4403e034
|
@ -618,7 +618,9 @@ class BlockManagerSafeMode {
|
|||
* 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()) {
|
||||
|
|
Loading…
Reference in New Issue