Commit 7d60edf
committed
[yugabyte#8204] ybase: GetLoadMoveCompletionPercent returns an incorrect 100% if tservers haven't
heartbeated their tablet reports
Summary:
Currently, if tablet servers don't check-in their tablets after a master leader failover, the
GetLoadMoveCompletionPercent incorrectly returns a 100 which can be catastrophic.
If we don't find any load on the blacklisted tservers then it can be because the tservers
are yet to heartbeat their tablet reports to this master. We shouldn't give a false
presumption that the load transfer is complete.
We expect that by load_balancer_initial_delay_secs time, this should go away and if the
load is reported as 0 on the blacklisted tservers after this time then it means that
the transfer is successfully complete.
Test Plan: ybd --cxx-test master_failover-itest --gtest_filter MasterFailoverTest.TestLoadMoveCompletion
Reviewers: nicolas, bogdan, rahuldesirazu
Reviewed By: rahuldesirazu
Subscribers: ybase
Differential Revision: https://phabricator.dev.yugabyte.com/D116131 parent 2b8064d commit 7d60edf
File tree
4 files changed
+57
-9
lines changed- src/yb
- integration-tests
- master
4 files changed
+57
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
496 | 496 | | |
497 | 497 | | |
498 | 498 | | |
499 | | - | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | | - | |
505 | | - | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
506 | 503 | | |
507 | 504 | | |
508 | 505 | | |
509 | 506 | | |
510 | 507 | | |
| 508 | + | |
511 | 509 | | |
512 | 510 | | |
513 | 511 | | |
| |||
523 | 521 | | |
524 | 522 | | |
525 | 523 | | |
| 524 | + | |
526 | 525 | | |
527 | 526 | | |
528 | 527 | | |
| |||
534 | 533 | | |
535 | 534 | | |
536 | 535 | | |
| 536 | + | |
| 537 | + | |
537 | 538 | | |
538 | 539 | | |
539 | 540 | | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
540 | 565 | | |
541 | 566 | | |
542 | 567 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
374 | 374 | | |
375 | 375 | | |
376 | 376 | | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
377 | 383 | | |
378 | 384 | | |
379 | 385 | | |
| |||
9098 | 9104 | | |
9099 | 9105 | | |
9100 | 9106 | | |
9101 | | - | |
| 9107 | + | |
9102 | 9108 | | |
9103 | 9109 | | |
9104 | 9110 | | |
9105 | 9111 | | |
9106 | 9112 | | |
9107 | 9113 | | |
9108 | 9114 | | |
| 9115 | + | |
| 9116 | + | |
| 9117 | + | |
| 9118 | + | |
| 9119 | + | |
| 9120 | + | |
| 9121 | + | |
| 9122 | + | |
| 9123 | + | |
| 9124 | + | |
| 9125 | + | |
| 9126 | + | |
| 9127 | + | |
| 9128 | + | |
9109 | 9129 | | |
9110 | 9130 | | |
9111 | 9131 | | |
9112 | 9132 | | |
| 9133 | + | |
| 9134 | + | |
9113 | 9135 | | |
9114 | 9136 | | |
9115 | 9137 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| 131 | + | |
131 | 132 | | |
132 | 133 | | |
133 | 134 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
0 commit comments