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
// If we are performing some other action, first ensure that it is not because of primary issues.
551
-
// This step is only meant to improve the time taken to detect and fix cluster wide recoveries, it does not impact correctness.
551
+
// This step is only meant to improve the time taken to detect and fix shard-wide recoveries, it does not impact correctness.
552
552
// If a VTOrc detects an issue on a replica like ReplicationStopped, the underlying cause could be a dead primary instead.
553
553
// So, we try to reload that primary's information before proceeding with the replication stopped fix. We do this before acquiring the shard lock
554
554
// to allow another VTOrc instance to proceed with the dead primary recovery if it is indeed the case and it detects it before us. If however, the primary
555
555
// is not dead, then we will proceed with the fix for the replica. Essentially, we are trading off speed in replica recoveries (by doing an additional primary tablet reload)
556
-
// for speed in cluster-wide recoveries (by not holding the shard lock before reloading the primary tablet information).
0 commit comments