opensearch-project / cross-cluster-replication

Synchronize your data across multiple clusters for lower latencies and higher availability
https://opensearch.org/docs/latest/replication-plugin/index/
Apache License 2.0
47 stars 57 forks source link

Is updation of an autofollow replication rule allowed? #1394

Open skumarp7 opened 2 months ago

skumarp7 commented 2 months ago

Is updation of an autofollow replication rule allowed?

Consider that an autofollow replication rule (test-rule) exists in the system which corresponds to the index pattern (test-). Now when we try to update the rule with a new index pattern (new-), the API returns {acknowledge: true} but there is no index getting replicated of the updated index pattern (new-). The indices falling under test- are getting replicated even after the updation of replication rule.

What is the expected behavior?

skumarp7 commented 2 months ago

Hi @ankitkala @monusingh-1,

Any insight on the above query ?

In the above sceanrio, it would be better to check if there any existing replication rule before creating a new replication rule (i.e) the API should throw exception in case of overriding an existing rule.

ankitkala commented 2 months ago

I think we should block the autofollow rule updates with proper validations.

skumarp7 commented 2 months ago

Hi @ankitkala ,

can you assign this ticket to me? I would like to work on it :)

dblock commented 2 months ago

[Catch All Triage - Attendees 1, 2, 3, 4, 5]