This repository was archived by the owner on Aug 20, 2025. It is now read-only.
METRON-2314 HDFSIndexingIntegrationTests Fails with SLF4J/Log4j Delegation Loop #1559
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
After merging #1557 from master into the
feature/METRON-2088-support-hdp-3.1feature branch, theHDFSIndexingIntegrationTestfails.Root Cause
It doesn't make sense for a project to pull-in both
slf4j-log4j12andlog4j-over-slf4j. The purpose ofslf4j-log4j12is intended to redirect calls made to an SLF4J logger to Log4j. The purpose oflog4j-over-slf4jis to redirect calls made to a Log4j logger to SLF4J. Pulling in both would cause endless indirection except for the specific check for this error performed by SLF4j. See the SLF4j documentation here for more information.The
metron-indexing-stormproject was pulling inlog4j-over-slf4jincorrectly as a transitive. This needs to be explicitly excluded.Acceptance Testing
The integration tests should pass.
Pull Request Checklist