[ 
https://issues.apache.org/jira/browse/SPARK-58681?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated SPARK-58681:
-----------------------------------
    Labels: pull-request-available  (was: )

> 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
>            Priority: Major
>              Labels: pull-request-available
>
> 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]

Reply via email to