You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When remote cluster state and remote data store are both enabled, the remote state and remote routing table repos are added to cluster state and hence showing up in _cat/repositories API.
But when only remote cluster state is enabled and remote data store is disabled, the remote state and remote routing table repos are not being added to cluster state. However the remote state publication is working correctly since it uses the repos from RepositoriesService which get initialized from from RemoteStoreNodeService.createAndVerifyRepositories during bootstrap.
The repos get added to cluster state during the join flow by JoinTaskExecutor. JoinTaskExecutor calls remoteStoreNodeService.updateRepositoriesMetadata to fetch repos to be added to the cluster state. But this function executes only when joining node is a remote store node
Describe the bug
When remote cluster state and remote data store are both enabled, the remote state and remote routing table repos are added to cluster state and hence showing up in
_cat/repositories
API.But when only remote cluster state is enabled and remote data store is disabled, the remote state and remote routing table repos are not being added to cluster state. However the remote state publication is working correctly since it uses the repos from RepositoriesService which get initialized from from RemoteStoreNodeService.createAndVerifyRepositories during bootstrap.
The repos get added to cluster state during the join flow by JoinTaskExecutor. JoinTaskExecutor calls remoteStoreNodeService.updateRepositoriesMetadata to fetch repos to be added to the cluster state. But this function executes only when joining node is a remote store node
OpenSearch/server/src/main/java/org/opensearch/node/remotestore/RemoteStoreNodeService.java
Line 171 in 0c3e3c0
This logic needs to be changed to check for nodes with only remote state enabled as well.
Similar logic is present here:
OpenSearch/server/src/main/java/org/opensearch/cluster/coordination/JoinTaskExecutor.java
Line 222 in 0c3e3c0
Related component
Cluster Manager
To Reproduce
Expected behavior
Remote cluster state and routing table repos should get added to cluster state and show up in _cat/repositories API.
Additional Details
Plugins
Please list all plugins currently enabled.
Screenshots
If applicable, add screenshots to help explain your problem.
Host/Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: