This is an automated email from the ASF dual-hosted git repository.

yihua pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hudi.git


The following commit(s) were added to refs/heads/master by this push:
     new d8b77c5e23c [HUDI-8910] Fix Unstable UT TestHoodieCompactionStrategy 
(#12704)
d8b77c5e23c is described below

commit d8b77c5e23c70e1c3240ce8ad20a95753a46e54f
Author: YueZhang <[email protected]>
AuthorDate: Sat Jan 25 07:00:59 2025 +0800

    [HUDI-8910] Fix Unstable UT TestHoodieCompactionStrategy (#12704)
---
 .../table/action/compact/strategy/TestHoodieCompactionStrategy.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/hudi-client/hudi-spark-client/src/test/java/org/apache/hudi/table/action/compact/strategy/TestHoodieCompactionStrategy.java
 
b/hudi-client/hudi-spark-client/src/test/java/org/apache/hudi/table/action/compact/strategy/TestHoodieCompactionStrategy.java
index 8187b22bd9a..73bb9e08b5e 100644
--- 
a/hudi-client/hudi-spark-client/src/test/java/org/apache/hudi/table/action/compact/strategy/TestHoodieCompactionStrategy.java
+++ 
b/hudi-client/hudi-spark-client/src/test/java/org/apache/hudi/table/action/compact/strategy/TestHoodieCompactionStrategy.java
@@ -95,7 +95,7 @@ public class TestHoodieCompactionStrategy {
     List<HoodieCompactionOperation> returned = resPair.getLeft();
     List<String> missingPartitions = resPair.getRight();
     if (enableIncrTableService) {
-      assertEquals(1, missingPartitions.stream().distinct().count());
+      assertTrue(missingPartitions.stream().distinct().count() > 0);
     }
     assertTrue(returned.size() < operations.size(), "BoundedIOCompaction 
should have resulted in fewer compactions");
     assertEquals(2, returned.size(), "BoundedIOCompaction should have resulted 
in 2 compactions being chosen");

Reply via email to