tkaymak commented on PR #40103:
URL: https://github.com/apache/beam/pull/40103#issuecomment-5663019483

   Spark Versions failure: the legacy running, cancelled and timeout state 
tests called `cancel()` and returned without `waitUntilFinish()`. With the 
asynchronous cancel the execution thread stops the session a moment later, 
after the next test class in the same fork had adopted it through 
`SparkSessionRule` and `getOrCreate`, hence the `NullPointerException` in 
`registerMetricsSource` in `CombineGloballyTest`.
   
   Fixed by joining after `cancel()` in those three tests, main code unchanged. 
Reproduced locally on `sparkVersion35Test` (there `CombinePerKeyTest` was the 
victim, it started 40 ms after the state test ended in the same fork), green 
after the fix on Spark 3.1, 3.5 and 4.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to