Uh oh!
There was an error while loading. Please reload this page.
[SPARK-19168][Structured Streaming] StateStore should be aborted upon error - #16547
[SPARK-19168][Structured Streaming] StateStore should be aborted upon error#16547lw-lin wants to merge 2 commits into
Conversation
SparkQA
commented
Jan 11, 2017
Test build #71193 has finished for PR 16547 at commit
|
There was a problem hiding this comment.
this is an easy fix, so I've also included it in this patch
SparkQA
commented
Jan 11, 2017
Test build #71195 has finished for PR 16547 at commit
|
There was a problem hiding this comment.
note this is assertNumStateRows(2, 1) without this patch, and is assertNumStateRows(2, 0) with this patch
There was a problem hiding this comment.
note this is assertNumStateRows(2, 1) without this patch, and is assertNumStateRows(2, 0) with this patch.
SparkQA
commented
Jan 11, 2017
Test build #71203 has finished for PR 16547 at commit
|
lw-lin
commented
Jan 11, 2017
There is another issue in this class: it doesn't call |
lw-lin
commented
Jan 12, 2017
@zsxwing thanks for the comments. I'll update this. |
SparkQA
commented
Jan 12, 2017
Test build #71248 has started for PR 16547 at commit |
lw-lin
commented
Jan 12, 2017
Jenkins retest this please |
SparkQA
commented
Jan 12, 2017
Test build #71266 has finished for PR 16547 at commit
|
lw-lin
commented
Jan 13, 2017
@zsxwing updated as per your comments; would you take another look? |
zsxwing
commented
Jan 13, 2017
Discussed with @tdas offline. Regarding the changes to the append mode, it's unknown that if adding the filter is better because it will apply the filter on all rows but there are usually only few rows out of watermark. It's better to just leave it as it it. For aborting StateStore, could you use |
zsxwing
commented
Jan 13, 2017
Could you also update the JIRA and the PR description after your changes? |
@zsxwing thanks for the feedback! Ah, sure, let me update accordingly. |
Append mode| CheckLastBatch((90L, 1), (100L, 1), (105L, 1)) | ||
| ) | ||
| } | ||
There was a problem hiding this comment.
The idea of the following test is to inject a mock state store, which:
- throws an error in its
commit()method - marks the
abortedflag in itsabort()method
Then at the end of the test, we would check if aborted is true
There was a problem hiding this comment.
I prefer to not add this complicated test because:
- TaskContext.get().addTaskCompletionListener has already been tested in other tests.
- Scala Reflection is not thread-safe in 2.10 and this test may be flaky since SQL also uses Scala Reflection.
There was a problem hiding this comment.
thanks! I hesitated a little when I added it -- yea it was complicated -- so let me remove it
SparkQA
commented
Jan 17, 2017
Test build #71512 has finished for PR 16547 at commit
|
zsxwing
left a comment
There was a problem hiding this comment.
I suggest to not add the test. Otherwise, LGTM.
| CheckLastBatch((90L, 1), (100L, 1), (105L, 1)) | ||
| ) | ||
| } | ||
There was a problem hiding this comment.
I prefer to not add this complicated test because:
- TaskContext.get().addTaskCompletionListener has already been tested in other tests.
- Scala Reflection is not thread-safe in 2.10 and this test may be flaky since SQL also uses Scala Reflection.
SparkQA
commented
Jan 18, 2017
Test build #71565 has finished for PR 16547 at commit
|
zsxwing
commented
Jan 18, 2017
LGTM. Merging to master and 2.1. Thanks! |
… error ## What changes were proposed in this pull request? We should call `StateStore.abort()` when there should be any error before the store is committed. ## How was this patch tested? Manually. Author: Liwei Lin <lwlin7@gmail.com> Closes#16547 from lw-lin/append-filter. (cherry picked from commit 569e506) Signed-off-by: Shixiong Zhu <shixiong@databricks.com>
… error ## What changes were proposed in this pull request? We should call `StateStore.abort()` when there should be any error before the store is committed. ## How was this patch tested? Manually. Author: Liwei Lin <lwlin7@gmail.com> Closesapache#16547 from lw-lin/append-filter.
… error ## What changes were proposed in this pull request? We should call `StateStore.abort()` when there should be any error before the store is committed. ## How was this patch tested? Manually. Author: Liwei Lin <lwlin7@gmail.com> Closesapache#16547 from lw-lin/append-filter.
What changes were proposed in this pull request?
We should call
StateStore.abort()when there should be any error before the store is committed.How was this patch tested?
Manually.