Hyukjin Kwon created SPARK-58030:
------------------------------------
Summary: Make FileDataSourceV2FallBackSuite robust to extra
listener events
Key: SPARK-58030
URL: https://issues.apache.org/jira/browse/SPARK-58030
Project: Spark
Issue Type: Bug
Components: SQL, Tests
Affects Versions: 5.0.0
Reporter: Hyukjin Kwon
The test 'Fallback Parquet V2 to V1' in FileDataSourceV2FallBackSuite registers
a QueryExecutionListener and asserts that exactly one query-execution event
landed on the listener bus (assert(commands.length == 1)). An additional eager
'collect' callback on the analyzed UnresolvedDataSource can race onto the bus,
making the count 2 and failing the test non-deterministically (observed on the
JDK 21 macOS-26 Maven run, sql#core - other tests).
Filter the recorded events to the write 'command' entry and assert on that,
rather than requiring the listener bus to contain exactly one event.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]