opensearch-project / OpenSearch

🔎 Open source distributed and RESTful search engine.
https://opensearch.org/docs/latest/opensearch/index/
Apache License 2.0
9.84k stars 1.83k forks source link

[BUG] Remote Repository Configuration - Validate for multiple prefixes #16605

Open rajiv-kv opened 1 week ago

rajiv-kv commented 1 week ago

Describe the bug

As part of this feature, we are supporting repository configuration for Remote-Store (or) Remote-Publication. A node can specify a repository configuration (eg cluster-state repository) as part of only one of the feature since the underlying repository service validates for unique repositories. Validate if a repository is configured either Remote-Store (or) Remote-Publication and NOT both.

Context :- Comment

Related component

Cluster Manager

To Reproduce

Configure the following settings in opensearch.yml node.attribute.remote_store.state.repository node.attribute.remote_publication.state.repository

the 2nd configuration will be ignored

Expected behavior

Node bootstrap should fail

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.