bharatviswa504 commented on a change in pull request #354: HDDS-2724. Sonar :
Fix sonar issues in package 'org.apache.hadoop.ozo…
URL: https://github.com/apache/hadoop-ozone/pull/354#discussion_r357880899
##########
File path:
hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/tasks/FileSizeCountTask.java
##########
@@ -162,10 +162,10 @@ private void updateCountFromDB() {
updateUpperBoundCount(omKeyInfo, DELETE);
break;
- default: LOG.trace("Skipping DB update event : " + omdbUpdateEvent
- .getAction());
+ default: LOG.trace("Skipping DB update event : {}",
+ omdbUpdateEvent.getAction());
}
- } catch (IOException e) {
+ } catch (Exception e) {
Review comment:
Why Exception is changed here, any reason?
----------------------------------------------------------------
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]