Skip to content
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

[BUG] [Segment Replication] Replica shard's translog is not getting purged after flush on index #4927

Closed
Rishikesh1159 opened this issue Oct 26, 2022 · 0 comments · Fixed by #4928
Assignees
Labels
bug Something isn't working distributed framework v2.4.0 'Issues and PRs related to version v2.4.0'

Comments

@Rishikesh1159
Copy link
Member

Describe the bug
With Segment Replication enabled when a flush is done on index, replica shards are not purging their translog and replica's translog size is increasing with new segment files. This can lead to disk running out of space on node very quickly. This only happens with replica shards, primary shards do purge their translog on a flush.

To Reproduce
Steps to reproduce the behavior:
-> Run a cluster and create an index with segment replication enabled.
-> Insert few docs, then flush on the index.
-> Compare the translog size on disk of primary and replica.

Expected behavior
Same as primary shards replica shards should also purge their translog after a flush on index.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working distributed framework v2.4.0 'Issues and PRs related to version v2.4.0'
Projects
Status: Done
1 participant