Github user andrewor14 commented on the pull request:
https://github.com/apache/spark/pull/221#issuecomment-38613782
The drawback of waiting N seconds on the listener bus is that this is still
a race condition. Because this happens at the end of the application,
configuring N can be tricky because you may have to re-run the entire
application again if N is not sufficiently large for all events to be
processed. I guess to workaround that we could just make N arbitrarily large.
A major plus of this approach is that it doesn't include changing the
public API, which is always nice.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---