Merge pull request #28274 from chbatey/rebalance-dead-letter
Avoid dead letter for rebalance timeout msg
This commit is contained in:
commit
2c96a57d89
1 changed files with 3 additions and 3 deletions
|
|
@ -437,15 +437,15 @@ object ShardCoordinator {
|
||||||
regions: Set[ActorRef],
|
regions: Set[ActorRef],
|
||||||
shuttingDownRegions: Set[ActorRef])
|
shuttingDownRegions: Set[ActorRef])
|
||||||
extends Actor
|
extends Actor
|
||||||
with ActorLogging {
|
with ActorLogging
|
||||||
|
with Timers {
|
||||||
import Internal._
|
import Internal._
|
||||||
|
|
||||||
shuttingDownRegions.foreach(context.watch)
|
shuttingDownRegions.foreach(context.watch)
|
||||||
regions.foreach(_ ! BeginHandOff(shard))
|
regions.foreach(_ ! BeginHandOff(shard))
|
||||||
var remaining = regions
|
var remaining = regions
|
||||||
|
|
||||||
import context.dispatcher
|
timers.startSingleTimer("hand-off-timeout", ReceiveTimeout, handOffTimeout)
|
||||||
context.system.scheduler.scheduleOnce(handOffTimeout, self, ReceiveTimeout)
|
|
||||||
|
|
||||||
def receive = {
|
def receive = {
|
||||||
case BeginHandOffAck(`shard`) =>
|
case BeginHandOffAck(`shard`) =>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue