wchevreuil commented on code in PR #7169:
URL: https://github.com/apache/hbase/pull/7169#discussion_r2239382529


##########
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/StoreEngine.java:
##########
@@ -463,7 +463,13 @@ public List<HStoreFile> commitStoreFiles(List<Path> files, 
boolean isCompaction,
           // Write-out finished successfully, move into the right spot
           committedPath = hfs.commitStoreFile(familyName, file);
         }
-        HStoreFile sf = createStoreFileAndReader(committedPath);
+        HStoreFile sf = null;
+        try{
+          sf = createStoreFileAndReader(committedPath);
+        } catch (IOException e){
+          hfs.deleteDir(committedPath);

Review Comment:
   let's do it in the same catch of line #474, after the for loop that deletes 
the already committed files.



-- 
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: issues-unsubscr...@hbase.apache.org

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

Reply via email to