Commit 49d4257
[fix][broker] Ensure LoadSheddingTask is scheduled after metadata service is available again (apache#24838)
Motivation
After PR: apache#23040, if the metadata service is unavailable and then becomes available again, the LoadSheddingTask will not run again.
Modifications
Ensure LoadSheddingTask is scheduled after metadata service is available again by moving the isMetadataServiceAvailable check to the try block.
(cherry picked from commit 461ffd8)1 parent 37af467 commit 49d4257
File tree
2 files changed
+8
-5
lines changed- pulsar-broker/src
- main/java/org/apache/pulsar/broker/loadbalance
- test/java/org/apache/pulsar/broker/loadbalance
2 files changed
+8
-5
lines changedLines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
521 | 522 | | |
522 | 523 | | |
523 | 524 | | |
524 | | - | |
| 525 | + | |
525 | 526 | | |
526 | 527 | | |
| 528 | + | |
527 | 529 | | |
528 | 530 | | |
529 | 531 | | |
| 532 | + | |
530 | 533 | | |
531 | 534 | | |
532 | 535 | | |
| |||
0 commit comments