Fix SLF4J component error#20587
Conversation
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 WalkthroughWalkthroughThis pull request updates the Log4j SLF4J binding implementation across multiple build files from Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@CHANGELOG.md`:
- Line 23: Update the changelog entry that currently reads "Fix SLF4J component
error ([20586](https://github.com/opensearch-project/OpenSearch/pull/20586))" to
reference the correct PR number and match the repository's link style: change
the PR number from 20586 to 20587 and add the '#' prefix in the link text so it
reads "Fix SLF4J component error
(#[20587](https://github.com/opensearch-project/OpenSearch/pull/20587))".
📜 Review details
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (9)
CHANGELOG.mdclient/rest/build.gradleplugins/repository-hdfs/build.gradleplugins/repository-hdfs/licenses/log4j-slf4j-impl-2.25.3.jar.sha1plugins/repository-hdfs/licenses/log4j-slf4j2-impl-2.25.3.jar.sha1plugins/repository-s3/build.gradleplugins/repository-s3/licenses/log4j-slf4j-impl-2.25.3.jar.sha1plugins/repository-s3/licenses/log4j-slf4j2-impl-2.25.3.jar.sha1qa/wildfly/build.gradle
💤 Files with no reviewable changes (2)
- plugins/repository-hdfs/licenses/log4j-slf4j-impl-2.25.3.jar.sha1
- plugins/repository-s3/licenses/log4j-slf4j-impl-2.25.3.jar.sha1
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
- GitHub Check: Code-Diff-Analyzer / Code-Diff-Analyzer
- GitHub Check: Mend Security Check
🔇 Additional comments (6)
plugins/repository-hdfs/build.gradle (1)
79-79: LGTM!Correct switch to
log4j-slf4j2-implto match the SLF4J 2.x API declared on line 78.qa/wildfly/build.gradle (1)
65-65: LGTM!Correct migration to
log4j-slf4j2-implfor the test dependency.plugins/repository-s3/build.gradle (1)
96-96: LGTM!Correct migration to
log4j-slf4j2-implfor the runtime dependency.plugins/repository-s3/licenses/log4j-slf4j2-impl-2.25.3.jar.sha1 (1)
1-1: LGTM!Checksum is consistent with the HDFS plugin's license file for the same artifact.
client/rest/build.gradle (1)
74-74: LGTM!Correct migration to
log4j-slf4j2-implfor the test dependency.plugins/repository-hdfs/licenses/log4j-slf4j2-impl-2.25.3.jar.sha1 (1)
1-1: SHA-1 checksum forlog4j-slf4j2-impl-2.25.3.jaris correct.The hash
8d1aca17817adb4a15720e64b98caf9cb3b2cc51matches the published artifact on Maven Central.
✏️ Tip: You can disable this entire section by setting review_details to false in your review settings.
681f583 to
2e7219e
Compare
3f36c2d to
913a817
Compare
|
@ShawnQiang1 Thank you for the PR! The changes look good to me. Waiting to see the results of the gradle check. |
@ShawnQiang1 we will need to add the LICENSE and NOTICE file into the |
Okay, I'll revise it after I get off work. |
@cwperks done |
Signed-off-by: Shawn Qiang <814238703@qq.com>
|
❌ Gradle check result for b6b8d68: 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? |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #20587 +/- ##
============================================
- Coverage 73.37% 73.36% -0.01%
- Complexity 72197 72201 +4
============================================
Files 5798 5798
Lines 329816 329816
Branches 47538 47538
============================================
- Hits 242001 241977 -24
- Misses 68458 68515 +57
+ Partials 19357 19324 -33 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Shawn Qiang <814238703@qq.com>
Signed-off-by: Shawn Qiang <814238703@qq.com>
Description
The error occurs because slf4j-api has changed from version 1.7.36 to 2.10.17, while the corresponding log4j-slf4j-impl needs to be changed to log4j-slf4j2-impl.
Related Issues
Resolves #20579