Commit ff3c590
authored
Shards can fail to HandOff indefinitely during scale-up when the
RebalanceWorker times out before receiving ShardStopped. The coordinator
never deallocates the shard, causing an endless GetShardHome/ShardHome loop.
- Add ShardStopped handler to ShardCoordinator.Active() (Pekko port):
cleans up unAckedHostShards and performs late deallocation when no
rebalance is in progress for the shard
- ShardRegion sends backup ShardStopped to coordinator on handoff
completion, ensuring the coordinator learns about it even when the
RebalanceWorker has already timed out
1 parent 8a9e6f0 commit ff3c590
2 files changed
Lines changed: 31 additions & 0 deletions
Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1790 | 1790 | | |
1791 | 1791 | | |
1792 | 1792 | | |
| 1793 | + | |
| 1794 | + | |
| 1795 | + | |
| 1796 | + | |
| 1797 | + | |
| 1798 | + | |
| 1799 | + | |
| 1800 | + | |
| 1801 | + | |
| 1802 | + | |
| 1803 | + | |
| 1804 | + | |
| 1805 | + | |
| 1806 | + | |
| 1807 | + | |
| 1808 | + | |
| 1809 | + | |
| 1810 | + | |
| 1811 | + | |
| 1812 | + | |
| 1813 | + | |
| 1814 | + | |
| 1815 | + | |
| 1816 | + | |
| 1817 | + | |
1793 | 1818 | | |
1794 | 1819 | | |
1795 | 1820 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1410 | 1410 | | |
1411 | 1411 | | |
1412 | 1412 | | |
| 1413 | + | |
| 1414 | + | |
| 1415 | + | |
| 1416 | + | |
| 1417 | + | |
| 1418 | + | |
1413 | 1419 | | |
1414 | 1420 | | |
1415 | 1421 | | |
| |||
0 commit comments