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-19113][SS][Tests] Ignore StreamingQueryException thrown from awaitInitialization to avoid breaking tests #16567

Closed
wants to merge 1 commit into from

Conversation

zsxwing
Copy link
Member

@zsxwing zsxwing commented Jan 13, 2017

What changes were proposed in this pull request?

#16492 missed one race condition: StreamExecution.awaitInitialization may throw fatal errors and fail the test. This PR just ignores StreamingQueryException thrown from awaitInitialization so that we can verify the exception in the ExpectFailure action later. It's fine since StopStream or ExpectFailure will catch StreamingQueryException as well.

How was this patch tested?

Jenkins

@SparkQA
Copy link

SparkQA commented Jan 13, 2017

Test build #71293 has started for PR 16567 at commit e5ed096.

@zsxwing
Copy link
Member Author

zsxwing commented Jan 13, 2017

retest this please

@SparkQA
Copy link

SparkQA commented Jan 13, 2017

Test build #71341 has finished for PR 16567 at commit e5ed096.

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

@tdas
Copy link
Contributor

tdas commented Jan 18, 2017

LGTM.

@zsxwing
Copy link
Member Author

zsxwing commented Jan 18, 2017

Thanks. Merging to master and 2.1.

asfgit pushed a commit that referenced this pull request Jan 18, 2017
…waitInitialization to avoid breaking tests

## What changes were proposed in this pull request?

#16492 missed one race condition: `StreamExecution.awaitInitialization` may throw fatal errors and fail the test. This PR just ignores `StreamingQueryException` thrown from `awaitInitialization` so that we can verify the exception in the `ExpectFailure` action later. It's fine since `StopStream` or `ExpectFailure` will catch `StreamingQueryException` as well.

## How was this patch tested?

Jenkins

Author: Shixiong Zhu <[email protected]>

Closes #16567 from zsxwing/SPARK-19113-2.

(cherry picked from commit c050c12)
Signed-off-by: Shixiong Zhu <[email protected]>
@asfgit asfgit closed this in c050c12 Jan 18, 2017
uzadude pushed a commit to uzadude/spark that referenced this pull request Jan 27, 2017
…waitInitialization to avoid breaking tests

## What changes were proposed in this pull request?

apache#16492 missed one race condition: `StreamExecution.awaitInitialization` may throw fatal errors and fail the test. This PR just ignores `StreamingQueryException` thrown from `awaitInitialization` so that we can verify the exception in the `ExpectFailure` action later. It's fine since `StopStream` or `ExpectFailure` will catch `StreamingQueryException` as well.

## How was this patch tested?

Jenkins

Author: Shixiong Zhu <[email protected]>

Closes apache#16567 from zsxwing/SPARK-19113-2.
cmonkey pushed a commit to cmonkey/spark that referenced this pull request Feb 15, 2017
…waitInitialization to avoid breaking tests

## What changes were proposed in this pull request?

apache#16492 missed one race condition: `StreamExecution.awaitInitialization` may throw fatal errors and fail the test. This PR just ignores `StreamingQueryException` thrown from `awaitInitialization` so that we can verify the exception in the `ExpectFailure` action later. It's fine since `StopStream` or `ExpectFailure` will catch `StreamingQueryException` as well.

## How was this patch tested?

Jenkins

Author: Shixiong Zhu <[email protected]>

Closes apache#16567 from zsxwing/SPARK-19113-2.
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.

3 participants