Github user tdas commented on a diff in the pull request:
https://github.com/apache/spark/pull/6294#discussion_r34856665
--- Diff:
streaming/src/main/scala/org/apache/spark/streaming/receiver/ReceiverSupervisor.scala
---
@@ -97,8 +98,8 @@ private[streaming] abstract class ReceiverSupervisor(
/** Called when supervisor is stopped */
protected def onStop(message: String, error: Option[Throwable]) { }
- /** Called when receiver is started */
- protected def onReceiverStart() { }
+ /** Called when receiver is started. Return true if the driver accepts
us */
+ protected def onReceiverStart(): Boolean = true
--- End diff --
No reason to return true as default. Keep this abstract.
---
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.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]