Details
-
Improvement
-
Status: Resolved
-
Critical
-
Resolution: Invalid
-
None
-
None
-
None
-
None
Description
One of my clients experienced data loss with the following sequence of operations:
1) SPLITSHARD with method as "link".
2) DELETESHARD of the parent (inactive) shard.
3) Query for documents in the subshards, seems like both subshards have 0 documents.
Proposing a fix (after offline discussion with noble.paul) based on running FORCEMERGE after SPLITSHARD (such that segments are rewritten), and not letting DELETESHARD delete the data directory until the FORCEMERGE operations finish.