SourabhBadhya commented on code in PR #4114:
URL: https://github.com/apache/hive/pull/4114#discussion_r1135279796


##########
ql/src/java/org/apache/hadoop/hive/ql/io/AcidUtils.java:
##########
@@ -1538,9 +1537,9 @@ private static HdfsDirSnapshot addToSnapshot(Map<Path, 
HdfsDirSnapshot> dirToSna
   public static Map<Path, HdfsDirSnapshot> getHdfsDirSnapshots(final 
FileSystem fs, final Path path)

Review Comment:
   I am not sure if this function is used by the Cleaner in the current 
upstream code. AFAIK Cleaner uses `getHdfsDirSnapshotsForCleaner` for getting 
the map of snapshots containing `HdfsDirSnapshot`.
   Link for the function `getHdfsDirSnapshotsForCleaner` - 
https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/io/AcidUtils.java#L1501
   
   On the cleaner side, the function is used here - 
   
https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/handler/CompactionCleaner.java#L269
   
   So from the Cleaner perspective, changing `getHdfsDirSnapshots` might not be 
very useful.



-- 
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: gitbox-unsubscr...@hive.apache.org

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


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

Reply via email to