Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[yugabyte#6571] Handle read replicas when checking counts in GetTable…
…tLocations Summary: When read replicas are present, the warning in GetTabletLocations triggers because it doesn't take read replicas into account. Add the read replica count so the false positive disappears. Additionally, GetExpectedNumberOfReplicas has a typo when fetching read replicas so only the last read replica placement info is taken into account. Fixed here as well! Test Plan: Couldn't figure out how to test this locally, so I modified `MasterFailoverTest.TestFailoverWithReadReplicas` to call GetTabletLocations, and manually checked the result. Reviewers: rahuldesirazu Reviewed By: rahuldesirazu Subscribers: ybase, bogdan Differential Revision: https://phabricator.dev.yugabyte.com/D10565
- Loading branch information