Manu Zhang created SPARK-58681:
----------------------------------
Summary: Fix race in SparkSession job cancellation test
Key: SPARK-58681
URL: https://issues.apache.org/jira/browse/SPARK-58681
Project: Spark
Issue Type: Improvement
Components: SQL
Affects Versions: 5.0.0
Reporter: Manu Zhang
SparkSessionJobTaggingAndCancellationSuite can wake the test thread after
Semaphore.release() but before jobEnded.incrementAndGet(). The test can then
observe a stale job count and fail with 2 did not equal 3.
Increment jobEnded before releasing the semaphore so the listener state update
happens before the waiting test thread continues. This is a test-only ordering
fix with no user-facing behavior change.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]