tomscut commented on code in PR #4201:
URL: https://github.com/apache/hadoop/pull/4201#discussion_r863251873


##########
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNode.java:
##########
@@ -1899,6 +1899,10 @@ synchronized void transitionToStandby() throws 
IOException {
   synchronized void transitionToObserver() throws IOException {
     String operationName = "transitionToObserver";
     namesystem.checkSuperuserPrivilege(operationName);
+    if (namesystem.isInSafeMode()) {

Review Comment:
   Thank you @xkrogen very much for the review and careful suggestions. 
   
   The intent here is really the same as 
`dfs.ha.nn.not-become-active-in-safemode`. It's just that the configuration 
name looks a bit conflicting.
   
   A more appropriate name would be 
dfs.ha.nn.do.not-accept-requests-in-safemode. Maybe we can change it later.



##########
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNode.java:
##########
@@ -1899,6 +1899,10 @@ synchronized void transitionToStandby() throws 
IOException {
   synchronized void transitionToObserver() throws IOException {
     String operationName = "transitionToObserver";
     namesystem.checkSuperuserPrivilege(operationName);
+    if (namesystem.isInSafeMode()) {

Review Comment:
   Thank you @xkrogen very much for the review and careful suggestions. 
   
   The intent here is really the same as 
`dfs.ha.nn.not-become-active-in-safemode`. It's just that the configuration 
name looks a bit conflicting.
   
   A more appropriate name would be 
`dfs.ha.nn.do.not-accept-requests-in-safemode`. Maybe we can change it later.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org

Reply via email to