alismess-db opened a new pull request #28912:
URL: https://github.com/apache/spark/pull/28912


   ### What changes were proposed in this pull request?
   #28671 introduced a change where the order in which CANCELED state for 
SparkExecuteStatementOperation is set was changed. Before setting the state to 
CANCELED, `cleanup()` was called which kills the jobs, causing an exception to 
be thrown inside `execute()`. This causes the state to transiently become ERROR 
before being set to CANCELED. This PR fixes the order.
   
   ### Why are the changes needed?
   Bug: wrong operation state is set.
   
   ### Does this PR introduce _any_ user-facing change?
   No.
   
   ### How was this patch tested?
   Unit test in SparkExecuteStatementOperationSuite.scala.


----------------------------------------------------------------
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.

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



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to