Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BACKPORT 2.14][#21371] docdb: Hidden split parent tablets showing as…
… leaderless in master's leaderless tablet endpoint Summary: Original commit: 5f38333 / D33401 Customer Impact: Universe is showing the load balanced status as true, but upon checking replica info, it's discovered that there are leaderless tablets, which are actually hidden split parent tablets. If you have Point-In-Time Recovery (PITR) enabled, the tablets aren't actually deleted if you drop the table until the retention window ends; they are just put into a hidden state. This issue can also occur in non-PITR scenarios where the split parent tablets are left undeleted for a long time (>120s). This can happen if one of the split children failed to register. Cause: When the tablet is marked as TABLET_DATA_SPLIT_COMPLETED, metrics for this tablet are skipped from being sent to the master. Consequently, the leader lease is not updated on the master. The fix is to also report metrics for tablets with state TABLET_DATA_SPLIT_COMPLETED. Jira: DB-10268 Test Plan: MasterPathHandlersItest.TestHiddenSplitParentTablet Reviewers: asrivastava, zdrudi Reviewed By: asrivastava Subscribers: bogdan, qhu, ybase Tags: #jenkins-ready Differential Revision: https://phorge.dev.yugabyte.com/D33716
- Loading branch information