-
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
org.opensearch.repositories.s3.S3BlobStoreRepositoryTests.testRequestStats fails with NullPointerException #13814
Conversation
@akolarkunnu you need to |
❌ Gradle check result for e8d3c47: 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? |
…Stats fails with NullPointerException It's a NullPointerException from S3BlobStore.extendedStats() method, where 'genericStatsMetricPublisher' is null. This parameter sets through S3Repository constructor from test and in this test it sets as null. This is the root cause of the issue. If we set valid a GenericStatsMetricPublisher, test works fine without any issue. This was a consistent failure, not a random failure. Resolves opensearch-project#10735 Signed-off-by: akolarkunnu <abdul.kolarkunnu@netapp.com>
Known flaky org.opensearch.indices.IndicesRequestCacheIT.testDeleteAndCreateSameIndexShardOnSameNode {p0={"opensearch.experimental.feature.pluggable.caching.enabled":"false"}} - #13792 |
@dblock do I need to create fresh PR after running git commit --amend -s? Also, since this is a test fix, how to skip Changelog Verifier? |
No, you should
I'll add the label. |
Link to the known issue for this so we can track flakes. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #13814 +/- ##
============================================
+ Coverage 71.42% 71.65% +0.23%
- Complexity 59978 61353 +1375
============================================
Files 4985 5063 +78
Lines 282275 288027 +5752
Branches 40946 41710 +764
============================================
+ Hits 201603 206388 +4785
- Misses 63999 64644 +645
- Partials 16673 16995 +322 ☔ View full report in Codecov by Sentry. |
@dblock Is it expecting 1 more approval? |
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-13814-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 5cde176918744b9640d2ef84cf9ede4226950cea
# Push it to GitHub
git push --set-upstream origin backport/backport-13814-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 |
@akolarkunnu Looks would you mind opening a manual backport PR for |
Ok, let me try that. |
@jed326 I am getting below error while trying to push. This is my first checkin. Do I nee to get special permission to do backport? remote: Permission to opensearch-project/OpenSearch.git denied to akolarkunnu. |
@akolarkunnu You will have to open a separate PR targeting the |
I mean when I do this step: |
@akolarkunnu I think the issue is that you need to be using your user fork when creating the PR so that in the above command 'origin' refers to your user fork. |
Backported - #13866 |
…Stats fails with NullPointerException (opensearch-project#13814) It's a NullPointerException from S3BlobStore.extendedStats() method, where 'genericStatsMetricPublisher' is null. This parameter sets through S3Repository constructor from test and in this test it sets as null. This is the root cause of the issue. If we set valid a GenericStatsMetricPublisher, test works fine without any issue. This was a consistent failure, not a random failure. Resolves opensearch-project#10735 Signed-off-by: akolarkunnu <abdul.kolarkunnu@netapp.com> Co-authored-by: akolarkunnu <abdul.kolarkunnu@netapp.com>
Description
It's a NullPointerException from S3BlobStore.extendedStats() method, where 'genericStatsMetricPublisher' is null. This parameter sets through S3Repository constructor from test and in this test it sets as null. This is the root cause of the issue. If we set valid a GenericStatsMetricPublisher, test works fine without any issue. This was a consistent failure, not a random failure.
Related Issues
Resolves #10735
Check List
Signed-off-by: Abdul Muneer Kolarkunnu muneer.kolarkunnu@netapp.com
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.