-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding replication (CCR) plugin interface and classes to common-utils #667
Conversation
Signed-off-by: aggarwalShivani <shivani.aggarwal@nokia.com>
src/main/kotlin/org/opensearch/commons/replication/action/ReplicationActions.kt
Show resolved
Hide resolved
Signed-off-by: aggarwalShivani <shivani.aggarwal@nokia.com>
Signed-off-by: aggarwalShivani <shivani.aggarwal@nokia.com>
src/main/kotlin/org/opensearch/commons/replication/action/ReplicationActions.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/org/opensearch/commons/replication/ReplicationPluginInterface.kt
Show resolved
Hide resolved
src/test/kotlin/org/opensearch/commons/replication/ReplicationPluginInterfaceTests.kt
Outdated
Show resolved
Hide resolved
Signed-off-by: aggarwalShivani <shivani.aggarwal@nokia.com>
Hi, |
…lasses Signed-off-by: aggarwalShivani <shivani.aggarwal@nokia.com>
The integration issue of common-utils and ccr is resolved with the merge of this change in ccr. Meanwhile, as the changes for the stop-replication feature for both common-utlis and ccr are ready, requesting your review on this. |
/** | ||
* Transport action plugin interfaces for the cross-cluster-replication plugin. | ||
*/ | ||
open class ReplicationPluginInterface { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
open class ReplicationPluginInterface { | |
object ReplicationPluginInterface { | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feels like the methods here should just be static methods.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. After modifying the way UTs were written in ism, it didnt need to remain open anymore.
I've made this change now 👍
On 2.x branch, as the backport PR was already merged, I've raised a new PR for addressing this comment.
Signed-off-by: aggarwalShivani <shivani.aggarwal@nokia.com>
Hi @bowenlan-amzn |
The backport to
To backport manually, run these commands in your terminal: # Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/common-utils/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/common-utils/backport-2.x
# Create a new branch
git switch --create backport-667-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 5e086a27ef844584499fdc15d7c15c9b47ad4420
# Push it to GitHub
git push --set-upstream origin backport-667-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/common-utils/backport-2.x Then, create a pull request where the |
Description
Background:
Proposed Solution:
(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
[ ] New functionality has been documented.[ ] New functionality has javadoc addedBy 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.