adoroszlai commented on a change in pull request #305: HDDS-2578. Handle 
InterruptedException in RandomKeyGenerator
URL: https://github.com/apache/hadoop-ozone/pull/305#discussion_r354430058
 
 

 ##########
 File path: 
hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/freon/RandomKeyGenerator.java
 ##########
 @@ -1062,6 +1062,9 @@ public void run() {
           }
         } catch (IOException | InterruptedException ex) {
           LOG.error("Exception while validating write: " + ex.getMessage());
+          if(ex instanceof InterruptedException) {
 
 Review comment:
   Thanks for updating the patch.
   
   > Did you run the sonar check locally to discover this?
   
   Yes, using [SonarLint](https://www.sonarlint.org/) plugin.  But this one I 
also remembered from another bug.
   
   > I want to understand so in future I can take care of these before I open a 
PR :)
   
   Thanks for that. :)

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


With regards,
Apache Git Services

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

Reply via email to