opensearch-project / OpenSearch

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

[Remote State] Use DiffUtils to find updates in Indices in RemoteClusterStateService #14177

Open shiv0408 opened 5 months ago

shiv0408 commented 5 months ago

Is your feature request related to a problem? Please describe

Currently we have added custom methods in RemoteClusterStateService which can be replaced by DiffUtils. This creates duplication and overhead in maintenance.

Describe the solution you'd like

Rather than having new methods, use existing methods to find the changes in state.

Related component

Cluster Manager

Describe alternatives you've considered

No response

Additional context

No response

soosinha commented 4 months ago

For custom objects, it was done here: https://github.com/opensearch-project/OpenSearch/pull/14338 For indices, it is pending