-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Segment Replication] Ingestion round removes previously ingested documents #5969
Comments
@dreamer-89. I'm not sure what the implementation of ingestDocs is doing in this test, is it tracking the id used between rounds guaranteeing they are unique? This test is ingesting 500 docs, waiting for replica to update then ingesting 1000 docs. Based on the result it looks to me that it is resetting the id each time, so i'd expect only 1k docs, with 500 goign through an update. Perhaps you can check latest op seqno at the end? |
I think its from SegmentReplicationSnapshotIT? In which case every invocation will create a new bg indexer starting from 0 doc id.
|
Describe the bug
While working on #5946, identified scenario where documents ingested in current round removes all documents ingested previously. This might be potential data loss issue, so filing the bug.
To Reproduce
This issue appears pretty reliably with below integration test.
Expected behavior
The total document count should match with documents ingested.
Host/Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: