Skip to content

Spark: fix flaky testReadingStreamFromFutureTimestamp by switching to Awaitility.await - #17405

Open
dramaticlly wants to merge 1 commit into
apache:mainfrom
dramaticlly:testReadingStreamFromFutureTimestamp
Open

Spark: fix flaky testReadingStreamFromFutureTimestamp by switching to Awaitility.await#17405
dramaticlly wants to merge 1 commit into
apache:mainfrom
dramaticlly:testReadingStreamFromFutureTimestamp

Conversation

@dramaticlly

Copy link
Copy Markdown
Contributor

Fix the flaky test in
https://github.com/apache/iceberg/actions/runs/30405288650/job/90429251920#step:6:11506

TestStructuredStreamingRead3 > testReadingStreamFromFutureTimetsamp() > catalogName = testhive, implementation = org.apache.iceberg.spark.SparkCatalog, config = {type=hive, default-namespace=default}, async = true FAILED
    java.lang.AssertionError: 
    Expecting actual:
      []
    to contain exactly in any order:
      [{"id"=-2,"data"="minustwo"},
        {"id"=-1,"data"="minusone"},
        {"id"=0,"data"="zero"}]
    but could not find the following elements:
      [{"id"=-2,"data"="minustwo"},
        {"id"=-1,"data"="minusone"},
        {"id"=0,"data"="zero"}]
        at org.apache.iceberg.spark.source.TestStructuredStreamingRead3.testReadingStreamFromFutureTimetsamp(TestStructuredStreamingRead3.java:635)

switch to Awaitility.await for better polling. Verified 5 times locally on all spark 3.5/4.0/4.1

@github-actions github-actions Bot added the spark label Jul 29, 2026
@dramaticlly

Copy link
Copy Markdown
Contributor Author

FYI @amogh-jahagirdar this CI failure come from merge of 23b5ce8, in case you want to take a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants