What is happening
Tablet peers track terms, committed indexes, and membership through Raft consensus. Remote bootstrap normally copies a leader's data to a recovering peer, but it requires a valid leader and source. When quorum is lost, the surviving replicas and WALs must be compared before selecting a recovery source, because an older peer may omit committed writes.