opensearch-project / common-utils

Offers a library of utilities for building Java-based OpenSearch plugins
Apache License 2.0
20 stars 93 forks source link

Adding replication (CCR) plugin interface and classes to common-utils #667

Open aggarwalShivani opened 5 months ago

aggarwalShivani commented 5 months ago

Description

Background:

Proposed Solution:

  1. Common-utils: Move common code of stop-replication from ccr project to common-utils.
  2. CCR: Modify ccr plugin to consume classes from common-utils. Also, create a new TransportAction that transforms the request into required type and invokes TransportStopIndexReplicationAction.
  3. ISM: Add new action in ism (FYI - This is an alternative approach for this feature. I had also raised a draft PR with a different approach, but we didnt go ahead with it as it required changes in opensearch-core as well.)

Change description: Code for StopIndexReplicationRequest and StopIndexReplicationAction are moved to common-utils. Added UTs for both the new classes added. This PR caters to point 1 of the proposed solution.

Issues Resolved

Related Issues unfollow-action #726

Check List

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. For more information on following Developer Certificate of Origin and signing off your commits, please check here.