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] Test RemoteFSTranslogTests.testMetadataFileDeletion is flaky #9605

Closed
mch2 opened this issue Aug 29, 2023 · 3 comments · Fixed by #11899
Closed

[BUG] Test RemoteFSTranslogTests.testMetadataFileDeletion is flaky #9605

mch2 opened this issue Aug 29, 2023 · 3 comments · Fixed by #11899
Assignees
Labels
bug Something isn't working flaky-test Random test failure that succeeds on second run Storage:Remote

Comments

@mch2
Copy link
Member

mch2 commented Aug 29, 2023

#9595 (comment)

@mch2
Copy link
Member Author

mch2 commented Oct 25, 2023

@ashking94 Can you pls take a look at this one.

@ashking94
Copy link
Member

Running this test on loop to reproduce this issue and accordingly decide the next step.

@ashking94
Copy link
Member

ashking94 commented Jan 16, 2024

I have been able to root cause the flakiness in this test on account of translog.trimUnreferencedReaders() being no-op when called due to previous deletion still ongoing and holding the permits. The current run of translog.trimUnreferencedReaders() on checking for permits sees that the required permits are not available and skips the deletion. To elaborate more on generation deletion, the approach is to acquire the permits, trigger async deletion and post successful deletion, release the permits.

sachinpkale pushed a commit that referenced this issue Jan 18, 2024
…11899)

Signed-off-by: Ashish Singh <ssashish@amazon.com>
opensearch-trigger-bot bot pushed a commit that referenced this issue Jan 18, 2024
…11899)

Signed-off-by: Ashish Singh <ssashish@amazon.com>
(cherry picked from commit 904c9a9)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
kotwanikunal pushed a commit that referenced this issue Jan 24, 2024
…11899) (#11915)

(cherry picked from commit 904c9a9)

Signed-off-by: Ashish Singh <ssashish@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
peteralfonsi pushed a commit to peteralfonsi/OpenSearch that referenced this issue Mar 1, 2024
rayshrey pushed a commit to rayshrey/OpenSearch that referenced this issue Mar 18, 2024
shiv0408 pushed a commit to Gaurav614/OpenSearch that referenced this issue Apr 25, 2024
…rch-project#9605 (opensearch-project#11899)

Signed-off-by: Ashish Singh <ssashish@amazon.com>
Signed-off-by: Shivansh Arora <hishiv@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working flaky-test Random test failure that succeeds on second run Storage:Remote
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants