Github user tdas commented on a diff in the pull request:

    https://github.com/apache/spark/pull/7276#discussion_r35287187
  
    --- Diff: 
streaming/src/main/scala/org/apache/spark/streaming/scheduler/ReceiverTracker.scala
 ---
    @@ -203,21 +262,20 @@ class ReceiverTracker(ssc: StreamingContext, 
skipReceiverLaunch: Boolean = false
     
       /** Deregister a receiver */
       private def deregisterReceiver(streamId: Int, message: String, error: 
String) {
    -    val newReceiverInfo = receiverInfo.get(streamId) match {
    +    val lastErrorTime =
    +      if (error == null || error == "") -1 else 
ssc.scheduler.clock.getTimeMillis()
    +    val errorInfo = ReceiverErrorInfo(
    +      lastErrorMessage = message, lastError = error, lastErrorTime = 
lastErrorTime)
    +    val newReceiverTrackingInfo = receiverTrackingInfos.get(streamId) 
match {
           case Some(oldInfo) =>
    -        val lastErrorTime =
    -          if (error == null || error == "") -1 else 
ssc.scheduler.clock.getTimeMillis()
    -        oldInfo.copy(endpoint = null, active = false, lastErrorMessage = 
message,
    -          lastError = error, lastErrorTime = lastErrorTime)
    +        oldInfo.copy(errorInfo = Some(errorInfo))
    --- End diff --
    
    Dont you have to mark the ReceiverState as INACTIVE here?


---
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]

Reply via email to