-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-32057][SQL][test-hive1.2][test-hadoop2.7] ExecuteStatement: cancel and close should not transiently ERROR #28912
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Test build #124431 has finished for PR 28912 at commit
|
|
also cc: @yaooqinn |
|
and also @wangyum |
|
Test build #124488 has finished for PR 28912 at commit
|
juliuszsompolski
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch! Thanks, and sorry for the breakage...
Since #28671 went to 3.0, I think this should get backported as fell.
yaooqinn
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
retest this please |
| (OperationState.CANCELED, (_: SparkExecuteStatementOperation).cancel()), | ||
| (OperationState.CLOSED, (_: SparkExecuteStatementOperation).close()) | ||
| ).foreach { case (finalState, transition) => | ||
| test(s"SPARK-32057 SparkExecuteStatementOperation should not transiently become ERROR " + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: drop s in the head.
|
Test build #124503 has finished for PR 28912 at commit
|
|
retest this please |
|
Test build #124509 has finished for PR 28912 at commit
|
|
retest this please |
1 similar comment
|
retest this please |
|
Test build #124514 has finished for PR 28912 at commit
|
|
@alismess-db Looks the valid test failures. |
|
Test build #124546 has finished for PR 28912 at commit
|
.../test/scala/org/apache/spark/sql/hive/thriftserver/SparkExecuteStatementOperationSuite.scala
Outdated
Show resolved
Hide resolved
|
Test build #124548 has finished for PR 28912 at commit
|
.../test/scala/org/apache/spark/sql/hive/thriftserver/SparkExecuteStatementOperationSuite.scala
Outdated
Show resolved
Hide resolved
@gatorsmile @maropu @HyukjinKwon @yaooqinn I have seen a lot of such issues with mockito in Spark tests lately... Do you know if there is some underlying build/test infra issue that causes all of these? |
|
retest this please |
|
Test build #124767 has finished for PR 28912 at commit
|
|
The test failures look like that we need to set up a dedicated JVM for this newly added test |
|
@alismess-db Could you try to add the test suite in |
|
Test build #124798 has finished for PR 28912 at commit
|
|
retest this please |
1 similar comment
|
retest this please |
|
Test build #124834 has finished for PR 28912 at commit
|
|
retest this please |
1 similar comment
|
retest this please |
|
Test build #124944 has finished for PR 28912 at commit
|
|
The tag |
|
retest this please |
|
Ah, I see. we need the tag |
|
Test build #125019 has finished for PR 28912 at commit
|
|
retest this please |
|
Test build #125056 has finished for PR 28912 at commit
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
retest this please.
|
retest this please |
|
Test build #125210 has finished for PR 28912 at commit
|
|
Merged to master and branch-3.0. |
…ncel and close should not transiently ERROR ### 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. Closes #28912 from alismess-db/execute-statement-operation-cleanup-order. Authored-by: Ali Smesseim <[email protected]> Signed-off-by: HyukjinKwon <[email protected]> (cherry picked from commit 8b0a54e) Signed-off-by: HyukjinKwon <[email protected]>
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 insideexecute(). 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.