Skip to content
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

Segment Replication stats throwing NPE when shards are unassigned or are in delayed allocation phase #14580

Merged
merged 1 commit into from
Feb 17, 2025

Conversation

rampreeth
Copy link
Contributor

@rampreeth rampreeth commented Jun 27, 2024

Description

Fixes segment Replication stats throwing NPE when shards are unassigned or are in delayed allocation phase

Related Issues

Resolves #11945

Check List

  • Functionality includes testing.
  • API changes companion pull request created, if applicable.
  • Public documentation issue/PR created, if applicable.

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.

Copy link
Contributor

❌ Gradle check result for ec6091b: 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?

Copy link
Contributor

❌ Gradle check result for aca2198: 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?

Copy link
Contributor

✅ Gradle check result for 0603be3: SUCCESS

Copy link

codecov bot commented Jun 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.68%. Comparing base (b82ed5a) to head (ba5b8c1).
Report is 32 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #14580      +/-   ##
============================================
+ Coverage     72.29%   72.68%   +0.38%     
- Complexity    65699    66041     +342     
============================================
  Files          5318     5318              
  Lines        305676   305677       +1     
  Branches      44350    44350              
============================================
+ Hits         220992   222170    +1178     
+ Misses        66582    65616     -966     
+ Partials      18102    17891     -211     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@opensearch-trigger-bot
Copy link
Contributor

This PR is stalled because it has been open for 30 days with no activity.

@opensearch-trigger-bot opensearch-trigger-bot bot added the stalled Issues that have stalled label Oct 6, 2024
@opensearch-trigger-bot opensearch-trigger-bot bot removed the stalled Issues that have stalled label Nov 1, 2024
@rampreeth
Copy link
Contributor Author

@shourya035 , I didn't get a chance to address the comments, will be doing that this week

Signed-off-by: Rampreeth Ethiraj <ethirajrampreeth@gmail.com>
@rampreeth rampreeth reopened this Feb 4, 2025
@rampreeth
Copy link
Contributor Author

@mch2 , could I please get a review on this?

@rampreeth rampreeth requested a review from mch2 February 4, 2025 17:01
Copy link
Contributor

github-actions bot commented Feb 4, 2025

✅ Gradle check result for ba5b8c1: SUCCESS

@mch2
Copy link
Member

mch2 commented Feb 6, 2025

Thanks for the fix @rampreeth, FYI @vinaykpud is working on a change to simplify segrep stats by pushing the computation to the replicas - #17055.

@mch2 mch2 added skip-changelog and removed backport 2.x Backport to 2.x branch labels Feb 6, 2025
@rampreeth
Copy link
Contributor Author

Thanks for the fix @rampreeth, FYI @vinaykpud is working on a change to simplify segrep stats by pushing the computation to the replicas - #17055.

Got it. Thanks @mch2 for the review.

@rampreeth rampreeth closed this Feb 7, 2025
@rampreeth rampreeth reopened this Feb 7, 2025
Copy link
Contributor

github-actions bot commented Feb 7, 2025

✅ Gradle check result for ba5b8c1: SUCCESS

@rampreeth
Copy link
Contributor Author

rampreeth commented Feb 7, 2025

@mch2 , I see that there are 6 workflows that are expected to run but doesn't seem to be running. Could you please help with that? Does it need approval?

@rampreeth rampreeth requested a review from mch2 February 10, 2025 14:02
@sachinpkale
Copy link
Member

@rampreeth Please update the PR description

@rampreeth
Copy link
Contributor Author

rampreeth commented Feb 13, 2025

@sachinpkale @mch2 , would you be able to merge the PR?

@mch2 mch2 merged commit 91a93da into opensearch-project:main Feb 17, 2025
68 of 88 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers low hanging fruit skip-changelog Storage Issues and PRs relating to data and metadata storage
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

[BUG] Segment Replication stats throwing NPE when shards are unassigned or are in delayed allocation phase
5 participants