Skip to content

test: wait for Parquet write plan callbacks - #6108

Open
rich7420 wants to merge 1 commit into
apache:mainfrom
rich7420:test/6075-parquet-write-plan-capture
Open

rich7420 wants to merge 1 commit into
apache:mainfrom
rich7420:test/6075-parquet-write-plan-capture

Conversation

@rich7420

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Closes #6075.

Rationale for this change

Parquet writer tests can capture a delayed callback from a setup write and incorrectly report that the write under test fell back to Spark.

What changes are included in this PR?

Drain the listener bus before registering the listener and after the write using CometListenerBusUtils.waitUntilEmpty, replacing the polling loop.

How are these changes tested?

Existing writer suites pass locally on Spark 4.0.4 and 4.1.3 (50 tests each), and Spark 3.5.9 (38 passed, 11 canceled by existing version gates). Fork CI passes across Spark profiles.

@github-actions github-actions Bot added enhancement New feature or request test Testing related labels Sep 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request test Testing related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Parquet writer tests can capture a previous write's plan

1 participant