Commit a530459
committed
MB-69328: Add FBR/Fusion stat to interlock with cache transfer
Provide a new stat group and stat to return if the cache transfer
has completed and the vbucket move can continue.
vb_1:snapshot_rebalance_continue true
The expectation is that ns_server is only reading/using this stat
after a vbucket was created from a snapshot. E.g. when a setvbucket
used the "use_snapshot=fbr|fusion" option. In those cases the
vbucket is expected to have an empty cache and require cache
population (network cache transfer). The flag remains false until
KV concludes the transfer (CacheTransferEnd received). ns_server
will wait on this stat in the fusion/fbr vbucket move path before
proceeding to takover or before concluding a replica move is
ready.
If a fbr/fusion vbucket changes state we also flip this flag to
true.
For any vbucket created by warmup or setvbucket then this value
defaults to true.
Change-Id: I66354b4f44d49b543612989497613328ab8ccdfe
Reviewed-on: https://review.couchbase.org/c/kv_engine/+/236359
Reviewed-by: Trond Norbye <[email protected]>
Tested-by: Build Bot <[email protected]>1 parent a98aa3b commit a530459
File tree
17 files changed
+132
-11
lines changed- daemon
- engines/ep
- src
- dcp
- tests
- module_tests
- include/memcached
- utilities
17 files changed
+132
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
365 | 365 | | |
366 | 366 | | |
367 | 367 | | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
368 | 376 | | |
369 | 377 | | |
370 | 378 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1530 | 1530 | | |
1531 | 1531 | | |
1532 | 1532 | | |
1533 | | - | |
1534 | | - | |
1535 | | - | |
1536 | | - | |
1537 | | - | |
| 1533 | + | |
1538 | 1534 | | |
1539 | | - | |
1540 | | - | |
1541 | 1535 | | |
1542 | 1536 | | |
1543 | 1537 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3312 | 3312 | | |
3313 | 3313 | | |
3314 | 3314 | | |
| 3315 | + | |
| 3316 | + | |
| 3317 | + | |
| 3318 | + | |
| 3319 | + | |
| 3320 | + | |
| 3321 | + | |
| 3322 | + | |
| 3323 | + | |
| 3324 | + | |
| 3325 | + | |
| 3326 | + | |
| 3327 | + | |
| 3328 | + | |
| 3329 | + | |
| 3330 | + | |
| 3331 | + | |
| 3332 | + | |
| 3333 | + | |
| 3334 | + | |
| 3335 | + | |
| 3336 | + | |
| 3337 | + | |
| 3338 | + | |
| 3339 | + | |
| 3340 | + | |
| 3341 | + | |
| 3342 | + | |
| 3343 | + | |
| 3344 | + | |
| 3345 | + | |
| 3346 | + | |
| 3347 | + | |
| 3348 | + | |
| 3349 | + | |
| 3350 | + | |
3315 | 3351 | | |
3316 | 3352 | | |
3317 | 3353 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
490 | 490 | | |
491 | 491 | | |
492 | 492 | | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
493 | 500 | | |
494 | 501 | | |
495 | 502 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5340 | 5340 | | |
5341 | 5341 | | |
5342 | 5342 | | |
| 5343 | + | |
| 5344 | + | |
| 5345 | + | |
5343 | 5346 | | |
5344 | 5347 | | |
5345 | 5348 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
50 | 63 | | |
51 | 64 | | |
52 | 65 | | |
| |||
103 | 116 | | |
104 | 117 | | |
105 | 118 | | |
106 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
107 | 122 | | |
108 | 123 | | |
109 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
387 | 387 | | |
388 | 388 | | |
389 | 389 | | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
390 | 398 | | |
391 | 399 | | |
392 | 400 | | |
| |||
564 | 572 | | |
565 | 573 | | |
566 | 574 | | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
567 | 579 | | |
568 | 580 | | |
569 | 581 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
985 | 985 | | |
986 | 986 | | |
987 | 987 | | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
988 | 993 | | |
989 | 994 | | |
990 | 995 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
699 | 699 | | |
700 | 700 | | |
701 | 701 | | |
702 | | - | |
703 | 702 | | |
704 | 703 | | |
705 | 704 | | |
| |||
747 | 746 | | |
748 | 747 | | |
749 | 748 | | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
750 | 753 | | |
751 | 754 | | |
752 | 755 | | |
| |||
3471 | 3474 | | |
3472 | 3475 | | |
3473 | 3476 | | |
| 3477 | + | |
| 3478 | + | |
| 3479 | + | |
| 3480 | + | |
3474 | 3481 | | |
3475 | 3482 | | |
3476 | 3483 | | |
| |||
0 commit comments