You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue was introduced in #9409 when the LEFT JOIN with database_instance was converted to JOIN. There is discussion as to why this was done here - #9409 (comment).
This scenario however was overlooked. Having a JOIN there means that the tablet which is the primary isn't returned from the query, which leads VTOrc to think that there is no primary in the given shard.
Before the actual bug fix, a cleanup for the cluster_name is required. It is currently stored in the database_instance which means that just as we switch to a LEFT JOIN we'll have the problem of the cluster name being empty. Instead we should be using keyspace and shard. This refactor has been accomplished in #12012
Overview of the Issue
VTOrc ran a PRS when there was already a primary which was successfully promoted.
The following steps happended -
Reproduction Steps
Binary Version
Operating System and Environment details
Log Fragments
No response
The text was updated successfully, but these errors were encountered: