-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-22638][SS]Use a separate queue for StreamingQueryListenerBus #19838
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
Conversation
|
Test build #84274 has finished for PR 19838 at commit
|
| * listeners to be somewhat isolated from others. | ||
| */ | ||
| private def addToQueue(listener: SparkListenerInterface, queue: String): Unit = synchronized { | ||
| private[spark] def addToQueue( |
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.
Is it necessary to make this change?
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.
Change it in order to call it in StreamingQueryListenerBus.
| import StreamingQueryListener._ | ||
|
|
||
| sparkListenerBus.addToSharedQueue(this) | ||
| sparkListenerBus.addToQueue(this, "streams") |
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.
nit: wanna make this a constant?
|
LGTM but I have very limited context on this codepath. Maybe @tdas can also take a very quick look? |
|
Don't you mean "thread" instead of "query" in your summary? |
|
@vanzin yeah. Good catch. Just a typo. |
|
Test build #84319 has finished for PR 19838 at commit
|
|
LGTM. |
|
Thanks! Merging to master. |
## What changes were proposed in this pull request? Use a separate Spark event queue for StreamingQueryListenerBus so that if there are many non-streaming events, streaming query listeners don't need to wait for other Spark listeners and can catch up. ## How was this patch tested? Jenkins Author: Shixiong Zhu <[email protected]> Closes #19838 from zsxwing/SPARK-22638.
What changes were proposed in this pull request?
Use a separate Spark event queue for StreamingQueryListenerBus so that if there are many non-streaming events, streaming query listeners don't need to wait for other Spark listeners and can catch up.
How was this patch tested?
Jenkins