-
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
Backport of 13814 - org.opensearch.repositories.s3.S3BlobStoreRepositoryTests.testRequest… #13866
Backport of 13814 - org.opensearch.repositories.s3.S3BlobStoreRepositoryTests.testRequest… #13866
Conversation
…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: Abdul Muneer Kolarkunnu <muneer.kolarkunnu@netapp.com> Signed-off-by: akolarkunnu <abdul.kolarkunnu@netapp.com>
fbf6e89
to
2d22f27
Compare
❌ Gradle check result for 2d22f27: 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 fbf6e89: 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? |
Analyzing the failures |
Is it possible rerun(re-trigger) the failed test suits? |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 2.x #13866 +/- ##
============================================
+ Coverage 71.28% 71.29% +0.01%
- Complexity 60145 61313 +1168
============================================
Files 4957 5038 +81
Lines 282799 288391 +5592
Branches 41409 42134 +725
============================================
+ Hits 201591 205616 +4025
- Misses 64189 65414 +1225
- Partials 17019 17361 +342 ☔ View full report in Codecov by Sentry. |
…Stats fails with NullPointerException (opensearch-project#13866) 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: Abdul Muneer Kolarkunnu <muneer.kolarkunnu@netapp.com> Signed-off-by: akolarkunnu <abdul.kolarkunnu@netapp.com> Co-authored-by: akolarkunnu <abdul.kolarkunnu@netapp.com> Signed-off-by: kkewwei <kkewwei@163.com>
Description
org.opensearch.repositories.s3.S3BlobStoreRepositoryTests.testRequestStats 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.
Related Issues
Resolves #10735
Signed-off-by: Abdul Muneer Kolarkunnu muneer.kolarkunnu@netapp.com