-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-43648][CONNECT][TESTS] Make interrupt all related test can be tested using maven
#41483
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -955,6 +955,7 @@ class ClientE2ETestSuite extends RemoteSparkSession with SQLHelper with PrivateM | |
| val session = spark | ||
| import session.implicits._ | ||
| implicit val ec = ExecutionContext.global | ||
| assume(transferredClientTestJarIfNeed && transferredClientJarIfNeed) | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because So I think it would be better to move them from
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Perhaps we can try using |
||
| val q1 = Future { | ||
| spark.range(10).map(n => { Thread.sleep(30000); n }).collect() | ||
| } | ||
|
|
@@ -996,6 +997,8 @@ class ClientE2ETestSuite extends RemoteSparkSession with SQLHelper with PrivateM | |
| import session.implicits._ | ||
| implicit val ec = ExecutionContext.global | ||
|
|
||
| assume(transferredClientTestJarIfNeed && transferredClientJarIfNeed) | ||
|
|
||
| @volatile var finished = false | ||
| val interruptor = Future { | ||
| eventually(timeout(20.seconds), interval(1.seconds)) { | ||
|
|
||
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.
Only Maven will trigger this issue, so add an environment variable needs to identify Maven test