deniskuzZ commented on a change in pull request #2772:
URL: https://github.com/apache/hive/pull/2772#discussion_r760249779



##########
File path: ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/Cleaner.java
##########
@@ -318,8 +335,8 @@ private static String idWatermark(CompactionInfo ci) {
   private boolean removeFiles(String location, ValidWriteIdList writeIdList, 
CompactionInfo ci)
       throws IOException, NoSuchObjectException, MetaException {
     Path locPath = new Path(location);
-    AcidDirectory dir = AcidUtils.getAcidState(locPath.getFileSystem(conf), 
locPath, conf, writeIdList, Ref.from(
-        false), false);
+    FileSystem fs = locPath.getFileSystem(conf);

Review comment:
       no, created a separate cleanup method to handle `safe-delete` + 
extracted the common part 




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