-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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 for deserilization bug in weighted round robin metadata #11679
Conversation
Compatibility status:Checks if related components are compatible with change 10174d4 Incompatible componentsSkipped componentsCompatible componentsCompatible components: [https://github.com/opensearch-project/custom-codecs.git, https://github.com/opensearch-project/asynchronous-search.git, https://github.com/opensearch-project/anomaly-detection.git, https://github.com/opensearch-project/flow-framework.git, https://github.com/opensearch-project/job-scheduler.git, https://github.com/opensearch-project/cross-cluster-replication.git, https://github.com/opensearch-project/reporting.git, https://github.com/opensearch-project/opensearch-oci-object-storage.git, https://github.com/opensearch-project/geospatial.git, https://github.com/opensearch-project/common-utils.git, https://github.com/opensearch-project/k-nn.git, https://github.com/opensearch-project/alerting.git, https://github.com/opensearch-project/neural-search.git, https://github.com/opensearch-project/security-analytics.git, https://github.com/opensearch-project/performance-analyzer-rca.git, https://github.com/opensearch-project/ml-commons.git, https://github.com/opensearch-project/notifications.git, https://github.com/opensearch-project/index-management.git, https://github.com/opensearch-project/security.git, https://github.com/opensearch-project/observability.git, https://github.com/opensearch-project/performance-analyzer.git, https://github.com/opensearch-project/sql.git] |
❕ Gradle check result for 7dec7f7: UNSTABLE
Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #11679 +/- ##
============================================
+ Coverage 71.33% 71.51% +0.18%
- Complexity 59762 59869 +107
============================================
Files 4959 4959
Lines 281123 281123
Branches 40856 40857 +1
============================================
+ Hits 200541 201057 +516
+ Misses 63935 63367 -568
- Partials 16647 16699 +52 ☔ View full report in Codecov by Sentry. |
❕ Gradle check result for fd8c269: UNSTABLE
Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
Signed-off-by: Anshu Agarwal <[email protected]>
❌ Gradle check result for 8ba2782: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Signed-off-by: Anshu Agarwal <[email protected]>
server/src/main/java/org/opensearch/cluster/metadata/WeightedRoutingMetadata.java
Show resolved
Hide resolved
❕ Gradle check result for 3cde9b1: UNSTABLE
Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
❕ Gradle check result for 13e05b5: UNSTABLE
Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
Signed-off-by: Anshu Agarwal <[email protected]>
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 @anshu1106 for fixing this, can we add the IT to cover read/write path of this weighted routing custom metadata with master restart?
server/src/main/java/org/opensearch/cluster/routing/WeightedRouting.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Anshu Agarwal <[email protected]>
server/src/internalClusterTest/java/org/opensearch/cluster/routing/WeightedRoutingIT.java
Show resolved
Hide resolved
❌ Gradle check result for 456038b: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Signed-off-by: Anshu Agarwal <[email protected]>
❕ Gradle check result for e1da3a0: UNSTABLE
Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
❌ Gradle check result for 9e8c874: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
9e8c874
to
a1c2397
Compare
❌ Gradle check result for a1c2397: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Signed-off-by: Anshu Agarwal <[email protected]>
a1c2397
to
10174d4
Compare
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/OpenSearch/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/OpenSearch/backport-2.x
# Create a new branch
git switch --create backport/backport-11679-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 cf1a0a29d6e5d59adef4a49b9c8eb00e9fea57da
# Push it to GitHub
git push --set-upstream origin backport/backport-11679-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/OpenSearch/backport-2.x Then, create a pull request where the |
…ch-project#11679) * Fix for deserialization bug in weighted round robin metadata Signed-off-by: Anshu Agarwal <[email protected]> * Add changelog Signed-off-by: Anshu Agarwal <[email protected]> * Add null check Signed-off-by: Anshu Agarwal <[email protected]> * Add integ test Signed-off-by: Anshu Agarwal <[email protected]> * spotless fix Signed-off-by: Anshu Agarwal <[email protected]> --------- Signed-off-by: Anshu Agarwal <[email protected]> Co-authored-by: Anshu Agarwal <[email protected]>
…ch-project#11679) * Fix for deserialization bug in weighted round robin metadata Signed-off-by: Anshu Agarwal <[email protected]> --------- Signed-off-by: Anshu Agarwal <[email protected]> Co-authored-by: Anshu Agarwal <[email protected]>
…12545) * Fix for deserialization bug in weighted round robin metadata --------- Signed-off-by: Anshu Agarwal <[email protected]> Co-authored-by: Anshu Agarwal <[email protected]>
…ch-project#11679) * Fix for deserialization bug in weighted round robin metadata Signed-off-by: Anshu Agarwal <[email protected]> * Add changelog Signed-off-by: Anshu Agarwal <[email protected]> * Add null check Signed-off-by: Anshu Agarwal <[email protected]> * Add integ test Signed-off-by: Anshu Agarwal <[email protected]> * spotless fix Signed-off-by: Anshu Agarwal <[email protected]> --------- Signed-off-by: Anshu Agarwal <[email protected]> Co-authored-by: Anshu Agarwal <[email protected]>
…ch-project#11679) * Fix for deserialization bug in weighted round robin metadata Signed-off-by: Anshu Agarwal <[email protected]> * Add changelog Signed-off-by: Anshu Agarwal <[email protected]> * Add null check Signed-off-by: Anshu Agarwal <[email protected]> * Add integ test Signed-off-by: Anshu Agarwal <[email protected]> * spotless fix Signed-off-by: Anshu Agarwal <[email protected]> --------- Signed-off-by: Anshu Agarwal <[email protected]> Co-authored-by: Anshu Agarwal <[email protected]> Signed-off-by: Shivansh Arora <[email protected]>
Description
This PR fixes deserialization bug in weighted round robin metadata
Related Issues
Resolves #11697
Check List
New functionality has been documented.New functionality has javadoc addedFailing checks are inspected and point to the corresponding known issue(s) (See: Troubleshooting Failing Builds)Public documentation issue/PR createdBy 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.