deniskuzZ commented on code in PR #6470:
URL: https://github.com/apache/hive/pull/6470#discussion_r3219756539


##########
storage-api/src/java/org/apache/hadoop/hive/common/ValidCleanerWriteIdList.java:
##########
@@ -49,4 +50,17 @@ public RangeResponse isWriteIdRangeValid(long minWriteId, 
long maxWriteId) {
     }
     return super.isWriteIdRangeValid(minWriteId, maxWriteId);
   }
+
+  /**
+   * Only consider the writeIds below the highWaterMark. This is to prevent 
the cleaner
+   * from deleting above its highWaterMark, even in case of aborted 
directories.
+   * otherwise uses {@link ValidReaderWriteIdList#isWriteIdAborted(long)}
+   */
+  @Override
+  public boolean isWriteIdAborted(long writeId) {
+    if (writeId > highWatermark) {

Review Comment:
   is this another bug? how about isWriteIdRangeAborted, do we need similar 
check?



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