Uh oh!
There was an error while loading. Please reload this page.
[SPARK-18143][SQL]Ignore Structured Streaming event logs to avoid breaking history server - #15663
[SPARK-18143][SQL]Ignore Structured Streaming event logs to avoid breaking history server#15663zsxwing wants to merge 5 commits into
Conversation
zsxwing
commented
Oct 27, 2016
zsxwing
commented
Oct 27, 2016
@rxin do we need to cancel 2.0.2-RC1 because of this issue? |
| case e: java.lang.ClassNotFoundException if | ||
| e.getMessage == "org.apache.spark.sql.streaming.StreamingQueryListener$QueryProgress" || | ||
| e.getMessage == "org.apache.spark.sql.streaming.StreamingQueryListener$QueryTerminated" | ||
| => |
There was a problem hiding this comment.
nit: formatting is weird.
wont it be easier if you defined a set with these class names, and then use "contains"?
tdas
commented
Oct 27, 2016
one comment, but overall looks good. |
SparkQA
commented
Oct 27, 2016
Test build #67664 has finished for PR 15663 at commit
|
SparkQA
commented
Oct 27, 2016
Test build #67666 has finished for PR 15663 at commit
|
SparkQA
commented
Oct 28, 2016
Test build #67678 has finished for PR 15663 at commit
|
SparkQA
commented
Oct 28, 2016
Test build #67680 has finished for PR 15663 at commit
|
| @@ -206,6 +209,45 @@ class StreamingQueryListenerSuite extends StreamTest with BeforeAndAfter { | |||
| assert(queryQueryTerminated.exception === newQueryTerminated.exception) | |||
| } | |||
There was a problem hiding this comment.
If this test is in sql/core, why are the resources in history server?
There was a problem hiding this comment.
I should have noticed this earlier. Sorry!
There was a problem hiding this comment.
Duh! its in sql/core :(
But good to create a structured-streaming directory rather than history-server
zsxwing
commented
Oct 29, 2016
Updated. 2.0.1 event logs don't include the |
SparkQA
commented
Oct 29, 2016
Test build #67731 has finished for PR 15663 at commit
|
SparkQA
commented
Oct 29, 2016
Test build #67734 has finished for PR 15663 at commit
|
zsxwing
commented
Oct 29, 2016
retest this please |
1 similar comment
zsxwing
commented
Oct 29, 2016
retest this please |
SparkQA
commented
Oct 29, 2016
Test build #67742 has finished for PR 15663 at commit
|
SparkQA
commented
Oct 29, 2016
Test build #67751 has finished for PR 15663 at commit
|
rxin
commented
Oct 31, 2016
tdas
commented
Oct 31, 2016
LGTM. Merging to master and 2.0 |
tdas
commented
Oct 31, 2016
Okay, I merged only to master, this does not merge cleanly to 2.0. I am on vacation so i cant test out the 2.0 fix quickly, better make a separate PR for 2.0 |
…eaking history server ## What changes were proposed in this pull request? Because of the refactoring work in Structured Streaming, the event logs generated by Strucutred Streaming in Spark 2.0.0 and 2.0.1 cannot be parsed. This PR just ignores these logs in ReplayListenerBus because no places use them. ## How was this patch tested? - Generated events logs using Spark 2.0.0 and 2.0.1, and saved them as `structured-streaming-query-event-logs-2.0.0.txt` and `structured-streaming-query-event-logs-2.0.1.txt` - The new added test makes sure ReplayListenerBus will skip these bad jsons. Author: Shixiong Zhu <shixiong@databricks.com> Closesapache#15663 from zsxwing/fix-event-log.
…eaking history server ## What changes were proposed in this pull request? Because of the refactoring work in Structured Streaming, the event logs generated by Strucutred Streaming in Spark 2.0.0 and 2.0.1 cannot be parsed. This PR just ignores these logs in ReplayListenerBus because no places use them. ## How was this patch tested? - Generated events logs using Spark 2.0.0 and 2.0.1, and saved them as `structured-streaming-query-event-logs-2.0.0.txt` and `structured-streaming-query-event-logs-2.0.1.txt` - The new added test makes sure ReplayListenerBus will skip these bad jsons. Author: Shixiong Zhu <shixiong@databricks.com> Closesapache#15663 from zsxwing/fix-event-log.
…file ## What changes were proposed in this pull request? While spark code changes, there are new events in event log: #19649 And we used to maintain a whitelist to avoid exceptions: #15663 Currently Spark history server will stop parsing on unknown events or unrecognized properties. We may still see part of the UI data. For better compatibility, we can ignore unknown events and parse through the log file. ## How was this patch tested? Unit test Author: Wang Gengliang <ltnwgl@gmail.com> Closes#19953 from gengliangwang/ReplayListenerBus.
What changes were proposed in this pull request?
Because of the refactoring work in Structured Streaming, the event logs generated by Strucutred Streaming in Spark 2.0.0 and 2.0.1 cannot be parsed.
This PR just ignores these logs in ReplayListenerBus because no places use them.
How was this patch tested?
structured-streaming-query-event-logs-2.0.0.txtandstructured-streaming-query-event-logs-2.0.1.txt