[BUG] Unable to enable remote state repository independently of data repositories #13523
Labels
bug
Something isn't working
good first issue
Good for newcomers
low hanging fruit
Storage:Remote
Storage
Issues and PRs relating to data and metadata storage
v2.15.0
Issues and PRs related to version 2.15.0
Describe the bug
Enabling just remote state repo (support added via PR #11858 ) starts a remote store migration. This migration doesn’t go through. The shards stay unassigned.
Related component
Storage
To Reproduce
Expected behavior
Enabling only remote state repository should not start a migration to remote store
Additional Details
Exception stack trace
Proposed solution
The migration flow uses the
isRemoteStoreNode( )
method. This method checks for the presence of anyremote_store
node attribute on the node:OpenSearch/server/src/main/java/org/opensearch/cluster/node/DiscoveryNode.java
Lines 464 to 471 in ed33488
Given that the state repo should be independent now, we should have distinct methods to identify whether the cluster state or data is remote-backed.
The text was updated successfully, but these errors were encountered: