smengcl commented on code in PR #8084:
URL: https://github.com/apache/ozone/pull/8084#discussion_r2113174224


##########
hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/ReconUtils.java:
##########
@@ -555,6 +556,7 @@ public File getLastKnownDB(File reconDbDir, String 
fileNamePrefix) {
             }
           } catch (NumberFormatException nfEx) {
             log.warn("Unknown file found in Recon DB dir : {}", fileName);
+            FileUtils.deleteQuietly(snapshotFile);

Review Comment:
   I guess we should have changed the logging as well to say:
   
   ```
   Deleting unknown file found in Recon DB dir
   ```



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