-
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] [BUG] Deleted docs remain searchable on replica after refresh #4216
Comments
This appears to be a general lag issue, where replica does gets the updates if a wait of few secs is added (verified that adding 2s thread sleep passes deleteOperations test consistently(ran 100 times). This generic lag is also evident from the fact that waitForReplicaUpdate method fails occasionally, waiting for replica to get latest generational file from primary.
The existing waitForReplicaUpdate ensures replica has the latest segment generation file. I think for now, adding |
In order to identify the file diff, added below code to print direcotry files on primary and replica but test never fails, which is interesting.
|
Unrelated failures in test
|
Describe the bug
Coming from #4185 (comment), deleted documents remain searchable on replica even after refresh/commit.
To Reproduce
Run below test in continuation (fails 3/10 in general):
Expected behavior
Deleted documents should be removed from replica shard.
Host/Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: