Commit 2f485f5
committed
[yugabyte#8254] No leader lease needed for BackfillIndex
Summary:
When backfill index was designed, the master was supposed to spawn out the
backfill tasks to the tservers. This was done by selecting the leader tablet for
each tablet. However, it is not required that the backfill be done at the leader.
Any of the followers that is past the backfilling_time can perform the backfill task;
This diff allows followers (i.e. non-leaders) to also perform backfill. While the design
is still to perform the backfill at the leader, this change is useful to ensure that backfill
is not stuck/gets timed-out in case there is a leadership change.
Test Plan: ybd --cxx-test integration-tests_cassandra_cpp_driver-test --gtest_filter CppCassandraDriverTest.TestTableBackfillWithLeaderMoves -n 10 --tp 1
Reviewers: bogdan, jason
Reviewed By: jason
Subscribers: ybase
Differential Revision: https://phabricator.dev.yugabyte.com/D116881 parent 5fc9ce1 commit 2f485f5
File tree
4 files changed
+64
-6
lines changed- src/yb
- integration-tests
- master
- tserver
4 files changed
+64
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
269 | 312 | | |
270 | 313 | | |
271 | 314 | | |
| |||
1862 | 1905 | | |
1863 | 1906 | | |
1864 | 1907 | | |
| 1908 | + | |
| 1909 | + | |
| 1910 | + | |
| 1911 | + | |
| 1912 | + | |
| 1913 | + | |
| 1914 | + | |
1865 | 1915 | | |
1866 | 1916 | | |
1867 | 1917 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
324 | | - | |
| 324 | + | |
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1370 | 1370 | | |
1371 | 1371 | | |
1372 | 1372 | | |
1373 | | - | |
1374 | | - | |
1375 | | - | |
| 1373 | + | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
| 1378 | + | |
| 1379 | + | |
| 1380 | + | |
1376 | 1381 | | |
1377 | 1382 | | |
1378 | 1383 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
684 | 684 | | |
685 | 685 | | |
686 | 686 | | |
687 | | - | |
688 | | - | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
689 | 691 | | |
| 692 | + | |
690 | 693 | | |
691 | 694 | | |
692 | 695 | | |
| |||
0 commit comments