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

StreamingSource reports metrics for lastCompletedBatch instead of lastReceivedBatch

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.6.2, 2.0.0
    • 1.6.3, 2.0.1, 2.1.0
    • DStreams

    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

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

            Dates

              Created:
              Updated:
              Resolved: