[Remote Translog] Remove PRRL creation & modify assertions for remote translog enabled Indexes #8795
Labels
enhancement
Enhancement or improvement to existing feature or request
needs more info
Storage:Durability
Issues and PRs related to the durability framework
Is your feature request related to a problem? Please describe.
Following up from #8484 (comment), we are seeing that the PRRLs do get created for remote enabled indexes, and in the #8484, we came across cases where the assertions were failing as the
RemoteStoreRecoverySource
expects empty retention leases. However, there are still retention leases present in memory.Describe the solution you'd like
We will need to remove the creation of retention leases for remote translog enabled indexes.
One of the places where the retention leases are getting created.
OpenSearch/server/src/main/java/org/opensearch/index/seqno/ReplicationTracker.java
Lines 1304 to 1344 in 83a4b6e
Sync retention leases needs to be disabled for remote translog enabled indexes.
OpenSearch/server/src/main/java/org/opensearch/index/IndexService.java
Lines 1032 to 1061 in 83a4b6e
There might be more areas where the retention leases are getting created and this needs to be investigated.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: