Github user zsxwing commented on a diff in the pull request:
https://github.com/apache/spark/pull/7797#discussion_r35885535
--- Diff:
streaming/src/main/scala/org/apache/spark/streaming/scheduler/ReceiverTracker.scala
---
@@ -223,7 +223,11 @@ class ReceiverTracker(ssc: StreamingContext,
skipReceiverLaunch: Boolean = false
// Signal the receivers to delete old block data
if (WriteAheadLogUtils.enableReceiverLog(ssc.conf)) {
logInfo(s"Cleanup old received batch data: $cleanupThreshTime")
- endpoint.send(CleanupOldBlocks(cleanupThreshTime))
--- End diff --
I saw NullPointerException once when I ran the tests a lot of times. The
`JobScheduler.eventLoop` is stopped after `ReceiverTracker.stop` and
`ReceiverTracker.stop` sets `endpoint` to null. Therefore it's possible that
this method is called between `ReceiverTracker.stop` and
`JobScheduler.eventLoop.stop` and will throw NullPointerException.
---
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]