Henry2SS commented on code in PR #9011:
URL: https://github.com/apache/incubator-doris/pull/9011#discussion_r858422627


##########
fe/fe-core/src/main/java/org/apache/doris/persist/MetaCleaner.java:
##########
@@ -67,6 +67,17 @@ public void clean() throws IOException {
             }
         }
     }
+
+    public void cleanTheLatestInvalidImageFile(String path) throws IOException 
{
+        File latestInvalidImage = new File(path);
+        if (latestInvalidImage.exists()) {
+            if (latestInvalidImage.delete()) {
+                LOG.info(latestInvalidImage.getAbsoluteFile() + " deleted.");
+            } else {
+                LOG.warn(latestInvalidImage.getAbsoluteFile() + " delete 
failed.");

Review Comment:
   
https://github.com/apache/incubator-doris/blob/87fc46f84c81c197607bccfa68056209ba226f6c/fe/fe-core/src/main/java/org/apache/doris/master/Checkpoint.java#L161-L166
   
   It will print the exception to the warning log as error.



-- 
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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to