Github user tdas commented on a diff in the pull request: https://github.com/apache/spark/pull/5680#discussion_r29409065 --- Diff: streaming/src/main/scala/org/apache/spark/streaming/ui/StreamingJobProgressListener.scala --- @@ -70,9 +70,8 @@ private[streaming] class StreamingJobProgressListener(ssc: StreamingContext) runningBatchInfos(batchStarted.batchInfo.batchTime) = batchStarted.batchInfo waitingBatchInfos.remove(batchStarted.batchInfo.batchTime) - batchStarted.batchInfo.receivedBlockInfo.foreach { case (_, infos) => - totalReceivedRecords += infos.map(_.numRecords).sum - } + // TODO. this should be fixed when input stream is not receiver based stream. + totalReceivedRecords += batchStarted.batchInfo.streamIdToNumRecords.values.sum --- End diff -- This can be replaced by `batchStarted.batchInfo.numRecords` if you implement `numRecords` as I said above.
--- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org