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