Open BhumikaSaini-Amazon opened 6 months ago
Hi, I would like to contribute to resolve this bug. Can you please assign this to me?
Thank you @sulthan309 for volunteering!
We are tracking this bugfix for the 2.15
release. We want to get the fix merged to main
and backported to 2.x
by the code freeze date of 10th June (calendar).
Please do check how the method is used at various places. That will help with identifying the changes we need. If you need more info anytime, please let us know.
Looking forward to your contribution!
Thank you for assigning this ticket to me.
@BhumikaSaini-Amazon Sure i will go through the code and reach out if needed.
We're running into this bug also in 2.15
. Do we have a new target release?
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: https://github.com/opensearch-project/OpenSearch/blob/ed33488aa426bd618685729fc638adad763f6ff7/server/src/main/java/org/opensearch/cluster/node/DiscoveryNode.java#L464-L471Given that the state repo should be independent now, we should have distinct methods to identify whether the cluster state or data is remote-backed.