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

Fix warnings from SLF4J on startup when repository-s3 is installed #16194

Merged
merged 3 commits into from
Oct 4, 2024

Conversation

cwperks
Copy link
Member

@cwperks cwperks commented Oct 4, 2024

Description

Fixes an issue in the repository-s3 plugin which prints warnings on startup related to slf4j:

[2024-10-01T14:20:57,070][WARN ][stderr                   ] SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
[2024-10-01T14:20:57,071][WARN ][stderr                   ] SLF4J: Defaulting to no-operation (NOP) logger implementation
[2024-10-01T14:20:57,071][WARN ][stderr                   ] SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

This PR is based on a similar PR done in the security plugin: opensearch-project/security#2564

Verified that the messages appear w/o this change and disappear on startup after this change.

Related Issues

Resolves #16152

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.

Signed-off-by: Craig Perkins <cwperx@amazon.com>
Signed-off-by: Craig Perkins <cwperx@amazon.com>
Copy link
Contributor

github-actions bot commented Oct 4, 2024

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

Signed-off-by: Craig Perkins <cwperx@amazon.com>
@reta reta added v3.0.0 Issues and PRs related to version 3.0.0 backport 2.x Backport to 2.x branch labels Oct 4, 2024
@reta reta added the v2.18.0 Issues and PRs related to version 2.18.0 label Oct 4, 2024
Copy link
Collaborator

@reta reta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @cwperks !

Copy link
Contributor

github-actions bot commented Oct 4, 2024

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

github-actions bot commented Oct 4, 2024

❕ Gradle check result for e3aed99: UNSTABLE

  • TEST FAILURES:
      1 org.opensearch.remotestore.multipart.RemoteStoreMultipartIT.testNoSearchIdleForAnyReplicaCount

Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure.

Copy link

codecov bot commented Oct 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.85%. Comparing base (aef7eca) to head (e3aed99).
Report is 2 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #16194      +/-   ##
============================================
- Coverage     72.00%   71.85%   -0.15%     
+ Complexity    64640    64456     -184     
============================================
  Files          5296     5296              
  Lines        301746   301748       +2     
  Branches      43586    43586              
============================================
- Hits         217270   216830     -440     
- Misses        66669    67073     +404     
- Partials      17807    17845      +38     

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

@reta reta merged commit b06ddb6 into opensearch-project:main Oct 4, 2024
44 of 46 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Oct 4, 2024
…16194)

* Fix warnings from SLF4J on startup when repository-s3 is installed

Signed-off-by: Craig Perkins <cwperx@amazon.com>

* Add to CHANGELOG

Signed-off-by: Craig Perkins <cwperx@amazon.com>

* Fix precommit

Signed-off-by: Craig Perkins <cwperx@amazon.com>

---------

Signed-off-by: Craig Perkins <cwperx@amazon.com>
(cherry picked from commit b06ddb6)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
reta pushed a commit that referenced this pull request Oct 4, 2024
…16194) (#16196)

* Fix warnings from SLF4J on startup when repository-s3 is installed



* Add to CHANGELOG



* Fix precommit



---------


(cherry picked from commit b06ddb6)

Signed-off-by: Craig Perkins <cwperx@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
dk2k pushed a commit to dk2k/OpenSearch that referenced this pull request Oct 16, 2024
…pensearch-project#16194)

* Fix warnings from SLF4J on startup when repository-s3 is installed

Signed-off-by: Craig Perkins <cwperx@amazon.com>

* Add to CHANGELOG

Signed-off-by: Craig Perkins <cwperx@amazon.com>

* Fix precommit

Signed-off-by: Craig Perkins <cwperx@amazon.com>

---------

Signed-off-by: Craig Perkins <cwperx@amazon.com>
dk2k pushed a commit to dk2k/OpenSearch that referenced this pull request Oct 17, 2024
…pensearch-project#16194)

* Fix warnings from SLF4J on startup when repository-s3 is installed

Signed-off-by: Craig Perkins <cwperx@amazon.com>

* Add to CHANGELOG

Signed-off-by: Craig Perkins <cwperx@amazon.com>

* Fix precommit

Signed-off-by: Craig Perkins <cwperx@amazon.com>

---------

Signed-off-by: Craig Perkins <cwperx@amazon.com>
dk2k pushed a commit to dk2k/OpenSearch that referenced this pull request Oct 21, 2024
…pensearch-project#16194)

* Fix warnings from SLF4J on startup when repository-s3 is installed

Signed-off-by: Craig Perkins <cwperx@amazon.com>

* Add to CHANGELOG

Signed-off-by: Craig Perkins <cwperx@amazon.com>

* Fix precommit

Signed-off-by: Craig Perkins <cwperx@amazon.com>

---------

Signed-off-by: Craig Perkins <cwperx@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Backport to 2.x branch bug Something isn't working Plugins v2.18.0 Issues and PRs related to version 2.18.0 v3.0.0 Issues and PRs related to version 3.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder" when adding repository-s3
2 participants