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

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


The following commit(s) were added to refs/heads/master by this push:
     new a1c94ab23 [test] Fix unstable test: IndexBootstrapTest.testBoostrap
a1c94ab23 is described below

commit a1c94ab2367da179511afffdb9d17c99f3cadff2
Author: Jingsong <[email protected]>
AuthorDate: Sun Apr 7 13:09:35 2024 +0800

    [test] Fix unstable test: IndexBootstrapTest.testBoostrap
---
 .../java/org/apache/paimon/crosspartition/IndexBootstrapTest.java    | 5 +++++
 1 file changed, 5 insertions(+)

diff --git 
a/paimon-core/src/test/java/org/apache/paimon/crosspartition/IndexBootstrapTest.java
 
b/paimon-core/src/test/java/org/apache/paimon/crosspartition/IndexBootstrapTest.java
index 50df6e497..a96ee1429 100644
--- 
a/paimon-core/src/test/java/org/apache/paimon/crosspartition/IndexBootstrapTest.java
+++ 
b/paimon-core/src/test/java/org/apache/paimon/crosspartition/IndexBootstrapTest.java
@@ -97,6 +97,11 @@ public class IndexBootstrapTest extends TableTestBase {
                 .containsExactlyInAnyOrder(
                         GenericRow.of(2, 1, 3), GenericRow.of(4, 2, 5), 
GenericRow.of(6, 3, 7));
         result.clear();
+
+        // In ParallelExecution, latch.countDown first, then close the reader, 
it may not be closed
+        // here, (this is good, beneficial for query speed) but 
TableTestBase.after will check leak
+        // streams. So sleep here to avoid unstable.
+        Thread.sleep(1000);
     }
 
     @Test

Reply via email to