Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-50534][SPARK-50535][TEST][CONNECT] Fix sporadic test failures
### What changes were proposed in this pull request? Fix sporadic Spark Connect test failures. 1. SPARK-50534: VerifyEvents.this.listener.executeHolder was not declared "volatile", causing the thread to repeatedly read potentially outdated value. The data structure is only used by the test suite. 2. SPARK-50535: org.apache.spark.sql.connect.service.SparkConnectSessionManager.invalidateAllSessions is susceptible to system time synchronization (e.g., NTP), leaving stale sessions. invalidateAllSessions is only used by test suites. ### Why are the changes needed? Fix sporadic test failures. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Repeatedly ran testOnly org.apache.spark.sql.connect.planner.SparkConnectServiceSuite and org.apache.spark.sql.connect.service.SparkConnectServiceE2ESuite. ### Was this patch authored or co-authored using generative AI tooling? No. Closes apache#49253 from changgyoopark-db/SPARK-50534. Authored-by: changgyoopark-db <changgyoo.park@databricks.com> Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
- Loading branch information