GitHub user tdas opened a pull request:
https://github.com/apache/spark/pull/7913
[SPARK-9556] [STREAMING][WIP] Make all BlockGenerators subscribe to rate
limit updates
In some receivers, instead of using the default `BlockGenerator` in
`ReceiverSupervisorImpl`, custom generator with their custom listeners are used
for reliability (see
[`ReliableKafkaReceiver`](https://github.com/apache/spark/blob/master/external/kafka/src/main/scala/org/apache/spark/streaming/kafka/ReliableKafkaReceiver.scala#L99)
and [updated
`KinesisReceiver`](https://github.com/apache/spark/pull/7825/files)). These
custom generators do not receive rate updates. This PR modifies the code to
allow custom `BlockGenerator`s to be managed (created, started and stopped) by
the `ReceiverSupervisorImpl` so that rate updates can be applied.
In the process, I did some simplification, and de-flaki-fication of some
rate controller related tests.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/tdas/spark SPARK-9556
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/7913.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 #7913
----
commit 51759cbb76e078ea787f90c18dcdf07674469f37
Author: Tathagata Das <[email protected]>
Date: 2015-08-04T00:46:15Z
Refactored rate controller tests and added the ability to update rate of
any custom block generator
----
---
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]