[Remote Store] Release permits and reopen the refresh listeners & RemoteFsTranslog if the primary relocation fails #11323
Labels
Storage:Durability
Issues and PRs related to the durability framework
Storage:Remote
v2.12.0
Issues and PRs related to version 2.12.0
Is your feature request related to a problem? Please describe.
We acquire all permits of Refresh Listeners and close them during the primary relocation. However, it is possible that the handoff does not succeed and the old primary continues to be primary still. In such cases, we want that the segments and translog to continue getting uploaded to remote store.
Describe the solution you'd like
Release permits and allow running refreshes and translog uploads back again. The old primary should be capable to upload segments and translog if the handoff was to fail and the old primary is still the acting primary.
Describe alternatives you've considered
None
Additional context
None
The text was updated successfully, but these errors were encountered: