deniskuzZ commented on code in PR #6101:
URL: https://github.com/apache/hive/pull/6101#discussion_r2387100380
##########
ql/src/test/org/apache/hadoop/hive/ql/txn/compactor/TestCleaner.java:
##########
@@ -1175,6 +1175,46 @@ public void testCompactionHighWatermarkIsHonored()
throws Exception {
Assert.assertEquals("Directories do not match", expectedDirs, actualDirs);
}
+ @Test
+ public void testCleanupOnConcurrentMinorCompactions() throws Exception {
+ String dbName = "default";
+ String tblName = "tcocmc";
+ Table t = newTable(dbName, tblName, false);
+
+ addBaseFile(t, null, 20L, 20, 21);
+ addDeltaFile(t, null, 22L, 22L, 1);
+ addDeltaFile(t, null, 23L, 23L, 1);
+
+ // Overlapping compacted deltas with different visibilityTxnIDs simulating
concurrent compaction from two workers
+ addDeltaFile(t, null, 22L, 23L, 2, 24);
+ addDeltaFile(t, null, 22L, 23L, 2, 25);
Review Comment:
I don't think we should allow this to happen in first place
--
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]