File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 9797import static org .apache .hadoop .hdfs .DFSConfigKeys .DFS_STORAGE_POLICY_ENABLED_KEY ;
9898import static org .apache .hadoop .hdfs .server .namenode .FSDirStatAndListingOp .*;
9999import static org .apache .hadoop .ha .HAServiceProtocol .HAServiceState .ACTIVE ;
100+ import static org .apache .hadoop .ha .HAServiceProtocol .HAServiceState .STANDBY ;
100101import static org .apache .hadoop .ha .HAServiceProtocol .HAServiceState .OBSERVER ;
101102
102103import org .apache .hadoop .hdfs .protocol .ErasureCodingPolicyInfo ;
@@ -1495,7 +1496,8 @@ void prepareToStopStandbyServices() throws ServiceFailedException {
14951496
14961497 /** Stop services required in standby state */
14971498 void stopStandbyServices () throws IOException {
1498- LOG .info ("Stopping services started for standby state" );
1499+ HAServiceState curState = getState () == OBSERVER ? OBSERVER : STANDBY ;
1500+ LOG .info ("Stopping services started for {} state" , curState );
14991501 if (standbyCheckpointer != null ) {
15001502 standbyCheckpointer .stop ();
15011503 }
You can’t perform that action at this time.
0 commit comments