[BUG] Data loss during primary relocation for remote-backed indexes #6214
Labels
bug
Something isn't working
Storage:Durability
Issues and PRs related to the durability framework
v2.6.0
'Issues and PRs related to version v2.6.0'
Describe the bug
During primary-primary relocation, encountering data loss when indexing is happening at high TPS. This specifically is starting after initiateTracking happens for the new primary shard. A subset of docs are missing after relocation completes. Also noticing that after relocation handoff is completed, indexing landing on new primary shard uses seq no that has been assigned after initiateTracking happened.
To Reproduce
Step 1 - Register repo for segments and translogs.
In environment variables -
Run below curl -
Step 2 - Create index
Step 3 - Index docs and trigger relocation immediately just after starting index
Index -
Relocate -
Expected Behaviour
Docs count should be exactly how many docs were indexed
The text was updated successfully, but these errors were encountered: