Github user jerryshao commented on a diff in the pull request:
https://github.com/apache/spark/pull/5680#discussion_r29427122
--- Diff:
streaming/src/main/scala/org/apache/spark/streaming/ui/StreamingJobProgressListener.scala
---
@@ -188,25 +189,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)
+
+ // TODO. this should be fixed when receiver-less input stream is mixed
into BatchInfo
--- End diff --
Maybe this TODO is not necessary.
---
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]