Matthew Biscocho created SOLR-18689:
---------------------------------------
Summary: Restore into existing TLOG collection can wipe a follower
and lead to data loss
Key: SOLR-18689
URL: https://issues.apache.org/jira/browse/SOLR-18689
Project: Solr
Issue Type: Improvement
Affects Versions: 10.1
Reporter: Matthew Biscocho
I was restoring a backup onto an existing collections that had 100 shards with
2 TLOG replicas on each shard and after the restore finished and doing a
rolling restart, there was data loss on some of my shards.
What I had found was during the restore, both replicas of each shard restore at
the same time. On some shards the follower finished first, checked its leader
while the leader was still mid-restore and appeared empty, and deleted its own
freshly restored index to match.
When the rolling restart kicked off and the leadership moved to the follower,
the new follower then copies the empty index, and the shard loses its restored
data on both replicas.
This appears to only affect restores into existing collections, because that
path restores every replica of the shard in parallel. Restoring into a new
collection restores one replica per shard first and adds the others afterwards,
so they replicate from a leader that has already finished.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]