Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-17038

StreamingSource reports metrics for lastCompletedBatch instead of lastReceivedBatch

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.6.2, 2.0.0
    • Fix Version/s: 1.6.3, 2.0.1, 2.1.0
    • Component/s: DStreams
    • Labels:

      Description

      StreamingSource's lastReceivedBatch_submissionTime, lastReceivedBatch_processingTimeStart, and lastReceivedBatch_processingTimeEnd all use data from lastCompletedBatch instead of lastReceivedBatch. In particular, this makes it impossible to match lastReceivedBatch_records with a batchID/submission time.
      This is apparent when looking at StreamingSource.scala, lines 89-94.
      I would guess that just replacing Completed->Received in those lines would fix the issue, but I haven't tested it.

        Attachments

          Activity

            People

            • Assignee:
              iamshrek Xin Ren
              Reporter:
              ozzieba Oz Ben-Ami
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: