Skip to content
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

[SPARK-20957][SS][Tests]Fix o.a.s.sql.streaming.StreamingQueryManagerSuite listing #18180

Closed
wants to merge 1 commit into from

Conversation

zsxwing
Copy link
Member

@zsxwing zsxwing commented Jun 2, 2017

What changes were proposed in this pull request?

When stopping StreamingQuery, StreamExecution will set streamDeathCause then notify StreamingQueryManager to remove this query. So it's possible that when q2.exception.isDefined returns true, StreamingQueryManager's active list still has q2.

This PR just puts the checks into eventually to fix the flaky test.

How was this patch tested?

Jenkins

@SparkQA
Copy link

SparkQA commented Jun 2, 2017

Test build #77661 has finished for PR 18180 at commit c3acd6d.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@dongjoon-hyun
Copy link
Member

+1, LGTM.

@tdas
Copy link
Contributor

tdas commented Jun 5, 2017

Merging this to master and 2.2

@asfgit asfgit closed this in bc537e4 Jun 5, 2017
asfgit pushed a commit that referenced this pull request Jun 5, 2017
…rSuite listing

## What changes were proposed in this pull request?

When stopping StreamingQuery, StreamExecution will set `streamDeathCause` then notify StreamingQueryManager to remove this query. So it's possible that when `q2.exception.isDefined` returns `true`, StreamingQueryManager's active list still has `q2`.

This PR just puts the checks into `eventually` to fix the flaky test.

## How was this patch tested?

Jenkins

Author: Shixiong Zhu <shixiong@databricks.com>

Closes #18180 from zsxwing/SPARK-20957.

(cherry picked from commit bc537e4)
Signed-off-by: Tathagata Das <tathagata.das1565@gmail.com>
@zsxwing zsxwing deleted the SPARK-20957 branch June 5, 2017 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants