GitHub user keypointt opened a pull request:
https://github.com/apache/spark/pull/14681
[SPARK-17038][Streaming] fix metrics retrieval source of 'lastReceivedBatch'
https://issues.apache.org/jira/browse/SPARK-17038
## What changes were proposed in this pull request?
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.
## How was this patch tested?
Manually running unit tests on local laptop
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/keypointt/spark SPARK-17038
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/14681.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #14681
----
commit f0e39a0a6218282d1f5409c722f7005ba3d7b04b
Author: Xin Ren <[email protected]>
Date: 2016-08-15T22:27:43Z
[SPARK-17038] fix metrics retrieval source
commit ccd211f5d37d8d9c2d44511a766090aa6095a463
Author: Xin Ren <[email protected]>
Date: 2016-08-17T07:12:18Z
[SPARK-17038] add some tests
----
---
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]