-
Notifications
You must be signed in to change notification settings - Fork 75
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
Fix breaking changes for 3.0.0 release #1424
Conversation
This PR updates imports and method references for bumping version to 3.0 alpha. Specifically, - Replace `import org.opensearch.client.Client;` with `import org.opensearch.transport.client.Client;` - Replace `getTotalHits().value` with `getTotalHits().value()` - Replace `import org.opensearch.action.support.master.AcknowledgedResponse;` with `import org.opensearch.action.support.clustermanager.AcknowledgedResponse;` - Replace `import org.opensearch.client.node.NodeClient;` with `import org.opensearch.transport.client.node.NodeClient;` - Replace `import org.opensearch.client.ClusterAdminClient;` with `import org.opensearch.transport.client.ClusterAdminClient;` - Replace `import org.opensearch.client.AdminClient;` with `import org.opensearch.transport.client.AdminClient;` - Replace `import org.opensearch.client.IndicesAdminClient;` with `import org.opensearch.transport.client.IndicesAdminClient;` - Rename `masterNodeId` to `clusterManagerNodeId` These changes align with similar PR: https://github.com/opensearch-project/flow-framework/pull/1026/files Testing done: * gradle build Signed-off-by: Kaituo Li <[email protected]>
@@ -35,7 +35,7 @@ buildscript { | |||
js_resource_folder = "src/test/resources/job-scheduler" | |||
common_utils_version = System.getProperty("common_utils.version", opensearch_build) | |||
job_scheduler_version = System.getProperty("job_scheduler.version", opensearch_build) | |||
bwcVersionShort = "2.19.0" | |||
bwcVersionShort = "2.20.0" |
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.
since 2.20 wont be released, should this stay 2.19 or it fails if its not 2.20?
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.
without doing it bwc test failed with
> `cluster{::securityBwcCluster0}` failed to wait for cluster health yellow after 40 SECONDS
IO error while waiting cluster
503 Service Unavailable
OpenSearch current major (3.0) is wire compatible only with last minor of previous major (2.20). Read opensearch-project/OpenSearch#5076 and opensearch-project/OpenSearch#5076
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.
I see, I assume that might need to change in future though if 2.20 is never released we will want for example 2.19.x be bwc with 3.0?
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/anomaly-detection/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/anomaly-detection/backport-2.x
# Create a new branch
git switch --create backport/backport-1424-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 b6ded29330f17357f7ac98432241a0a88187f6c4
# Push it to GitHub
git push --set-upstream origin backport/backport-1424-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/anomaly-detection/backport-2.x Then, create a pull request where the |
Description
This PR updates imports and method references for bumping version to 3.0 alpha.
Specifically,
import org.opensearch.client.Client;
withimport org.opensearch.transport.client.Client;
getTotalHits().value
withgetTotalHits().value()
import org.opensearch.action.support.master.AcknowledgedResponse;
withimport org.opensearch.action.support.clustermanager.AcknowledgedResponse;
import org.opensearch.client.node.NodeClient;
withimport org.opensearch.transport.client.node.NodeClient;
import org.opensearch.client.ClusterAdminClient;
withimport org.opensearch.transport.client.ClusterAdminClient;
import org.opensearch.client.AdminClient;
withimport org.opensearch.transport.client.AdminClient;
import org.opensearch.client.IndicesAdminClient;
withimport org.opensearch.transport.client.IndicesAdminClient;
masterNodeId
toclusterManagerNodeId
These changes align with similar PR: https://github.com/opensearch-project/flow-framework/pull/1026/files
Testing done:
Related Issues
Resolves #[Issue number to be closed when this PR is merged]
opensearch-project/OpenSearch#3351
Check List
--signoff
.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.