Github user tdas commented on a diff in the pull request:
https://github.com/apache/spark/pull/7913#discussion_r36148454
--- Diff:
streaming/src/main/scala/org/apache/spark/streaming/receiver/Receiver.scala ---
@@ -266,14 +266,16 @@ abstract class Receiver[T](val storageLevel:
StorageLevel) extends Serializable
/** Attach Network Receiver executor to this receiver. */
private[streaming] def attachExecutor(exec: ReceiverSupervisor) {
- assert(executor_ == null)
- executor_ = exec
+ assert(_supervisor == null)
+ _supervisor = exec
}
/** Get the attached executor. */
- private def executor: ReceiverSupervisor = {
- assert(executor_ != null, "Executor has not been attached to this
receiver")
- executor_
+ private[streaming] def supervisor: ReceiverSupervisor = {
+ assert(_supervisor != null,
--- End diff --
@helena I think this gives better error message in the scenario that you
hit with your custom receiver?
---
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]