Commit 503e718
authored
[server] Fix follower heartbeat entries for AA stores to use local region only (linkedin#2584)
Fix AA follower heartbeat initialization to track only local region
Problem: Active/Active follower replicas were initializing heartbeat tracking
for all regions instead of only the local region. Because followers consume
only the local VT, non-local heartbeat entries were never updated, causing
unbounded delay growth and misleading catch-up metrics for remote regions.
Solution: Restore the leader-versus-follower initialization logic in
HeartbeatMonitoringService so AA leaders still track all regions, while AA
followers create heartbeat entries only for the local region. Update
HeartbeatMonitoringServiceTest to verify followers keep a single
local-region entry and do not create remote-region entries.1 parent 97e3800 commit 503e718
3 files changed
Lines changed: 7 additions & 9 deletions
File tree
- clients/da-vinci-client/src
- main/java/com/linkedin/davinci/stats/ingestion/heartbeat
- test/java/com/linkedin/davinci/stats/ingestion/heartbeat
- internal/venice-test-common/src/integrationTest/java/com/linkedin/venice/endToEnd
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
| 136 | + | |
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| |||
Lines changed: 4 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
413 | 413 | | |
414 | 414 | | |
415 | 415 | | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
| 416 | + | |
| 417 | + | |
420 | 418 | | |
421 | 419 | | |
422 | 420 | | |
| |||
525 | 523 | | |
526 | 524 | | |
527 | 525 | | |
528 | | - | |
529 | | - | |
530 | | - | |
| 526 | + | |
| 527 | + | |
531 | 528 | | |
532 | 529 | | |
533 | 530 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
318 | | - | |
| 318 | + | |
| 319 | + | |
319 | 320 | | |
320 | 321 | | |
321 | 322 | | |
| |||
0 commit comments