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

Backport of 13814 - org.opensearch.repositories.s3.S3BlobStoreRepositoryTests.testRequest… #13866

Merged

Conversation

akolarkunnu
Copy link
Contributor

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

@github-actions github-actions bot added bug Something isn't working flaky-test Random test failure that succeeds on second run good first issue Good for newcomers Storage Issues and PRs relating to data and metadata storage labels May 29, 2024
@akolarkunnu akolarkunnu changed the title org.opensearch.repositories.s3.S3BlobStoreRepositoryTests.testRequest… Backport of 13814 org.opensearch.repositories.s3.S3BlobStoreRepositoryTests.testRequest… May 29, 2024
…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>
@akolarkunnu akolarkunnu force-pushed the backport/backport-13814-to-2.x branch from fbf6e89 to 2d22f27 Compare May 29, 2024 07:16
@akolarkunnu akolarkunnu changed the title Backport of 13814 org.opensearch.repositories.s3.S3BlobStoreRepositoryTests.testRequest… Backport of 13814 - org.opensearch.repositories.s3.S3BlobStoreRepositoryTests.testRequest… May 29, 2024
Copy link
Contributor

❌ 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?

Copy link
Contributor

❌ 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?

@akolarkunnu
Copy link
Contributor Author

Analyzing the failures

@akolarkunnu
Copy link
Contributor Author

Is it possible rerun(re-trigger) the failed test suits?

Copy link
Contributor

✅ Gradle check result for 2d22f27: SUCCESS

Copy link

codecov bot commented May 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.29%. Comparing base (0dd892c) to head (2d22f27).
Report is 282 commits behind head on 2.x.

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.
📢 Have feedback on the report? Share it here.

@msfroh msfroh merged commit 1bdf43d into opensearch-project:2.x May 30, 2024
33 of 34 checks passed
@akolarkunnu akolarkunnu deleted the backport/backport-13814-to-2.x branch June 3, 2024 10:18
kkewwei pushed a commit to kkewwei/OpenSearch that referenced this pull request Jul 24, 2024
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working flaky-test Random test failure that succeeds on second run good first issue Good for newcomers 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.

3 participants