-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Optimizing get indices to segments map calculations for IndicesSegmen… #14717
Optimizing get indices to segments map calculations for IndicesSegmen… #14717
Conversation
…tResponse class Signed-off-by: Harsh Garg <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #14717 +/- ##
============================================
+ Coverage 71.93% 71.97% +0.03%
- Complexity 63995 64048 +53
============================================
Files 5259 5259
Lines 299435 299437 +2
Branches 43270 43269 -1
============================================
+ Hits 215412 215532 +120
+ Misses 66287 66221 -66
+ Partials 17736 17684 -52 ☔ View full report in Codecov by Sentry. |
server/src/main/java/org/opensearch/action/admin/indices/segments/IndicesSegmentResponse.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/action/admin/indices/segments/IndicesSegmentResponse.java
Outdated
Show resolved
Hide resolved
This PR is stalled because it has been open for 30 days with no activity. |
Signed-off-by: Harsh Garg <[email protected]>
❌ Gradle check result for 637dccb: 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? |
server/src/main/java/org/opensearch/action/admin/indices/segments/IndicesSegmentResponse.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/action/admin/indices/segments/IndicesSegmentResponse.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/action/admin/indices/segments/IndicesSegmentResponse.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Harsh Garg <[email protected]>
❌ Gradle check result for 241ca48: 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? |
server/src/main/java/org/opensearch/action/admin/indices/segments/IndicesSegmentResponse.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Harsh Garg <[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.
LGTM, thanks for making the changes @gargharsh3134
❌ Gradle check result for ccca45e: 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? |
@gargharsh3134 observing this error
|
Signed-off-by: Harsh Garg <[email protected]>
Addressed in the latest commit. Thanks! |
❌ Gradle check result for 4990514: 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? |
❌ Gradle check result for 4990514: null 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? |
❌ Gradle check result for 4990514: 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? |
❌ Gradle check result for 4990514: 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? |
❕ Gradle check result for 4990514: 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. |
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-14717-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 d28fbc3bc2a4fbf0a70558e775e3f7a9e15d2617
# Push it to GitHub
git push --set-upstream origin backport/backport-14717-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 |
opensearch-project#14717) * Optimizing get indices to segments map calculations for IndicesSegmentResponse class Signed-off-by: Harsh Garg <[email protected]>
opensearch-project#14717) * Optimizing get indices to segments map calculations for IndicesSegmentResponse class Signed-off-by: Harsh Garg <[email protected]>
opensearch-project#14717) * Optimizing get indices to segments map calculations for IndicesSegmentResponse class Signed-off-by: Harsh Garg <[email protected]>
…r IndicesSegmentResponse (#14717) (#15881) Signed-off-by: Harsh Garg <[email protected]>
opensearch-project#14717) * Optimizing get indices to segments map calculations for IndicesSegmentResponse class Signed-off-by: Harsh Garg <[email protected]>
Description
Removes extra computations to get the indices to IndexSegments map which will help reduce the latencies for _cat/segments and other REST APIs
Related Issues
Resolves #14720
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.