[
https://issues.apache.org/jira/browse/SPARK-4859?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrew Or closed SPARK-4859.
----------------------------
Resolution: Fixed
Fix Version/s: 1.3.0
Assignee: Shixiong Zhu
> Refactor LiveListenerBus and StreamingListenerBus
> -------------------------------------------------
>
> Key: SPARK-4859
> URL: https://issues.apache.org/jira/browse/SPARK-4859
> Project: Spark
> Issue Type: Improvement
> Components: Streaming
> Affects Versions: 1.0.0
> Reporter: Shixiong Zhu
> Assignee: Shixiong Zhu
> Fix For: 1.3.0
>
>
> [#4006|https://github.com/apache/spark/pull/4006] refactors LiveListenerBus
> and StreamingListenerBus and extracts the common codes to a parent class
> ListenerBus.
> It also includes bug fixes in
> [#3710|https://github.com/apache/spark/pull/3710]:
> 1. Fix the race condition of queueFullErrorMessageLogged in LiveListenerBus
> and StreamingListenerBus to avoid outputing queue-full-error logs multiple
> times.
> 2. Make sure the SHUTDOWN message will be delivered to listenerThread, so
> that we can make sure listenerThread will always be able to exit.
> 3. Log the error from listener rather than crashing listenerThread in
> StreamingListenerBus.
> During fixing the above bugs, we find it's better to make LiveListenerBus and
> StreamingListenerBus have the same bahaviors. Then there will be many
> duplicated codes in LiveListenerBus and StreamingListenerBus.
> Therefore, I extracted their common codes to ListenerBus as a parent class:
> LiveListenerBus and StreamingListenerBus only need to extend ListenerBus and
> implement onPostEvent (how to process an event) and onDropEvent (do something
> when droppping an event).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]