xiaoyuyao commented on a change in pull request #2312:
URL: https://github.com/apache/ozone/pull/2312#discussion_r648564809



##########
File path: 
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/ha/RatisUtil.java
##########
@@ -190,6 +195,23 @@ public static void checkRatisException(IOException e, 
String port,
       throw new ServiceException(ServerNotLeaderException
           .convertToNotLeaderException(nle,
               SCMRatisServerImpl.getSelfPeerId(scmId), port));
+    } else if (e instanceof SCMSecurityException) {
+      // For this error client needs to retry on next SCM.

Review comment:
       Can you be more specific, change "this error" to "NOT_A_PRIMARY_SCM 
error"




-- 
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.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to