hanishakoneru commented on a change in pull request #51: HDDS-2311. Fix logic 
of RetryPolicy in OzoneClientSideTranslatorPB.
URL: https://github.com/apache/hadoop-ozone/pull/51#discussion_r336637965
 
 

 ##########
 File path: 
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/protocolPB/OzoneManagerProtocolClientSideTranslatorPB.java
 ##########
 @@ -277,6 +269,22 @@ private RetryAction getRetryAction(RetryAction 
fallbackAction,
     return proxy;
   }
 
+  /**
+   * Check if exception is a NotLeaderException
+   * @return NotLeaderException.
+   */
+  private NotLeaderException getNotLeaderException(Exception exception) {
+    Throwable cause = exception.getCause();
+    if (cause instanceof RemoteException) {
 
 Review comment:
   I dont think cause can be null. Let me verify.

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

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

Reply via email to