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

    https://github.com/apache/spark/pull/5680#discussion_r29543066
  
    --- Diff: 
streaming/src/main/scala/org/apache/spark/streaming/ui/StreamingJobProgressListener.scala
 ---
    @@ -188,25 +188,26 @@ private[streaming] class 
StreamingJobProgressListener(ssc: StreamingContext)
       }
     
       def receivedRecordsDistributions: Map[Int, Option[Distribution]] = 
synchronized {
    -    val latestBatches = retainedBatches.reverse.take(batchUIDataLimit)
    -    (0 until numReceivers).map { receiverId =>
    -      val recordsOfParticularReceiver = latestBatches.map { batch =>
    -        // calculate records per second for each batch
    -        batch.receiverNumRecords.get(receiverId).sum.toDouble * 1000 / 
batchDuration
    -      }
    -      val distributionOption = Distribution(recordsOfParticularReceiver)
    -      (receiverId, distributionOption)
    +    val latestBatchInfos = retainedBatches.reverse.take(batchUIDataLimit)
    +    val latestReceiverNumRecords = 
latestBatchInfos.map(_.receiverNumRecords)
    +    val streamIds = ssc.graph.getInputStreams().map(_.id)
    +    streamIds.map { id =>
    +     val recordsOfParticularReceiver =
    --- End diff --
    
    @zsxwing Can you take care of this indentation in your PR?


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