yugabyte/yugabyte-db

[read-replicas] spurious logging (?): Expected replicas 3 but found 11 for tablet

Open

#3,235 opened on Dec 31, 2019

View on GitHub
 (0 comments) (0 reactions) (0 assignees)C (1,003 forks)batch import
area/docdbgood first issuekind/bugpriority/medium

Repository metrics

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

Description

Jira Link: DB-1673 On a cluster with 3 primary replicas, and 8 read replicas, user reported the following:

The master's started logging a lot of Expected replicas 3 but found 11 for tablet halfway into the spike in errors.

The log line seems misleading (since 11 is indeed the expected number of replicas for the tablet in this setup).

Can we look to see if it is just spurious logging or a logic issue in master interpreting the read-replicas incorrectly?

Contributor guide