[
https://issues.apache.org/jira/browse/HUDI-8234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17888053#comment-17888053
]
Lin Liu commented on HUDI-8234:
-------------------------------
When the test finished, we printed the timeline, which looks like the
following; which means we need to have some synchronization methods to ensure
the commit has been finished.
{code:java}
232086 [main] INFO org.apache.hudi.common.table.timeline.HoodieActiveTimeline
[] - Loaded instants upto :
Option{val=[==>20241009125845008__deltacommit__INFLIGHT]}
[[20241009125844369__20241009125844927__deltacommit__COMPLETED],
[20241009125845006__20241009125845433__deltacommit__COMPLETED],
[==>20241009125845008__deltacommit__INFLIGHT]]
done
{code}
> Fix flakey test testPartitionStatsWithMultiWriter
> -------------------------------------------------
>
> Key: HUDI-8234
> URL: https://issues.apache.org/jira/browse/HUDI-8234
> Project: Apache Hudi
> Issue Type: Improvement
> Reporter: Ethan Guo (this is the old account; please use "yihua")
> Assignee: Lin Liu
> Priority: Blocker
> Labels: pull-request-available
> Fix For: 1.0.0
>
>
> {code:java}
> Error: Tests run: 226, Failures: 1, Errors: 0, Skipped: 18, Time elapsed:
> 996.823 s <<< FAILURE! - in JUnit Vintage
> 7519Error: [2]
> tableType=MERGE_ON_READ(testPartitionStatsWithMultiWriter(HoodieTableType))
> Time elapsed: 2.625 s <<< FAILURE!
> 7520org.opentest4j.AssertionFailedError: expected: <0> but was: <1>
> 7521 at org.junit.jupiter.api.AssertionUtils.fail(AssertionUtils.java:55)
> 7522 at
> org.junit.jupiter.api.AssertionUtils.failNotEqual(AssertionUtils.java:62)
> 7523 at
> org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:166)
> 7524 at
> org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:161)
> 7525 at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:628)
> 7526 at
> org.apache.hudi.functional.PartitionStatsIndexTestBase.validateDataAndPartitionStats(PartitionStatsIndexTestBase.scala:262)
> 7527 at
> org.apache.hudi.functional.TestPartitionStatsIndex.testPartitionStatsWithMultiWriter(TestPartitionStatsIndex.scala:200)
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)