Github user uncleGen commented on a diff in the pull request:
https://github.com/apache/spark/pull/3912#discussion_r22572535
--- Diff:
streaming/src/main/scala/org/apache/spark/streaming/receiver/ReceiverSupervisorImpl.scala
---
@@ -73,14 +73,16 @@ private[streaming] class ReceiverSupervisorImpl(
/** Timeout for Akka actor messages */
private val askTimeout = AkkaUtils.askTimeout(env.conf)
+ private var numRegisterAttemps = -1
/** Akka actor for receiving messages from the ReceiverTracker in the
driver */
private val actor = env.actorSystem.actorOf(
Props(new Actor {
override def preStart() {
- logInfo("Registered receiver " + streamId)
- val msg = RegisterReceiver(
- streamId, receiver.getClass.getSimpleName,
Utils.localHostName(), self)
+ numRegisterAttemps += 1
+ logInfo("Register receiver " + streamId + " before it starts ")
+ val msg = RegisterReceiver(streamId,
receiver.getClass.getSimpleName,
--- End diff --
@jerryshao yeah, I am confused too. IMHO, it is better to distinguish
"register state" and "start state".
---
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]