yugabyte/yugabyte-db

[DocDB] Fix regressed LoadBalancerPlacementPolicyTest.UnderreplicatedAdd test

Closed

#31,620 opened on May 13, 2026

 (0 comments) (0 reactions) (1 assignee)C (1,003 forks)batch import
2025.1 Backport Required2025.2 Backport Requiredarea/docdbgood first issuekind/bugkind/failing-testpriority/mediumstatus/awaiting-triage

Repository metrics

Stars
 (8,229 stars)
PR merge metrics
 (Avg merge 17d 21h) (92 merged PRs in 30d)

Description

Jira Link: DB-21388

Description

Commit https://github.com/yugabyte/yugabyte-db/commit/16d34ab1f19f453487d6b58903cca47a26882b42#diff-89ea3cb136f09e681792b16e724bfdf16eeecd96126782da8d84bc0aebf0f4d9 increased follower_unavailable_considered_failed_sec from 3 -> 6 in some tests. this introduces flakiness in tests like LoadBalancerPlacementPolicyTest.UnderreplicatedAdd because the tests expect the raft quorum related activity to be done within some timeout, and the prior flag affects removal of peers.

Re-work the timing in the tests, or better, replace them with log waiters instead.

Issue Type

kind/bug

Warning: Please confirm that this issue does not contain any sensitive information

  • I confirm this issue does not contain any sensitive information.

Contributor guide