aajisaka commented on a change in pull request #3677:
URL: https://github.com/apache/hadoop/pull/3677#discussion_r760923356



##########
File path: 
hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/protocol/datatransfer/sasl/SaslDataTransferClient.java
##########
@@ -605,14 +605,14 @@ private IOStreamPair doSaslHandshake(InetAddress addr,
     } catch (IOException ioe) {
       try {
         sendGenericSaslErrorMessage(out, ioe.getMessage());
-      } catch (Exception ioe2) {
+      } catch (Exception e) {
         // If ioe is caused by error response from server, server will close 
peer connection.
         // So sendGenericSaslErrorMessage might cause IOException due to 
"Broken pipe".
         // We suppress IOException from sendGenericSaslErrorMessage
         // and always throw `ioe` as top level.
         // `ioe` can be InvalidEncryptionKeyException or 
InvalidBlockTokenException
         // that indicates refresh key or token and are important for caller.
-        ioe.addSuppressed(ioe2);
+        ioe.addSuppressed(e);

Review comment:
       I'm +1 if that is addressed. Thanks!




-- 
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: [email protected]

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