devmadhuu commented on code in PR #11585:
URL: https://github.com/apache/ozone/pull/11585#discussion_r4312229761
##########
hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/tasks/ContainerSizeCountTask.java:
##########
@@ -87,7 +87,14 @@ protected synchronized void run() {
wait(interval);
long startTime, endTime, duration, durationMilliseconds;
startTime = System.nanoTime();
- initializeAndRunTask();
+ try {
+ initializeAndRunTask();
+ } catch (Exception e) {
+ LOG.error("Failed to run Container Size Distribution task.", e);
Review Comment:
This needs to be better handled in `ReconScmTask` base class with some logic
similar to being done in `ContainerHealthTask` as similar issue was handled in
`ContainerHealthTask`, and exists in `PipelineSyncTask` also, so better handle
in base class which should fix for all 3.
--
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]