-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BACKPORT 2.20.2][#20919] docdb: fix leaderless tablet endpoint for R…
…F-1 setup Summary: Original commit: 4113566 / D32180 For rf-1 setup, leader's ht lease reported to the master is constantly `InfiniteWatermarkForLocalPeer` (max of uint64_t). So condition `ht_lease_exp > existing_leader_lease_info->ht_lease_expiration` can only pass once at the first time the master received the metrics containing this tablet. Fix this condition to also cover `ht_lease_exp == existing_leader_lease_info->ht_lease_expiration`. Jira: DB-9900 Test Plan: MasterPathHandlersLeaderlessRF1ITest.TestRF1 MasterPathHandlersLeaderlessRF3ITest.* Reviewers: asrivastava Reviewed By: asrivastava Subscribers: ybase, bogdan Tags: #jenkins-ready Differential Revision: https://phorge.dev.yugabyte.com/D32563
- Loading branch information
Showing
2 changed files
with
45 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters