adoroszlai opened a new pull request, #7069: URL: https://github.com/apache/ozone/pull/7069
## What changes were proposed in this pull request? `commons-lang` v2 is a transitive dependency via Hadoop and Ranger. Ozone and most of its other dependencies use `commons-lang` v3. The goal of this PR: - Replace existing usage of `commons-lang` v2 with v3. - Ban import of v2 classes to avoid new usage. https://issues.apache.org/jira/browse/HDDS-11305 ## How was this patch tested? Tested `pom.xml` change without import changes on `master`: ``` [ERROR] Rule 6: org.apache.maven.plugins.enforcer.RestrictImports failed with message: [ERROR] [ERROR] Banned imports detected in TEST code: [ERROR] [ERROR] Reason: Use commons-lang v3 [ERROR] in hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/TestScmClient.java [ERROR] static org.apache.commons.lang.RandomStringUtils.randomAlphabetic (Line: 46, Matched by: org.apache.commons.lang.**) [ERROR] in hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/service/TestKeyDeletingService.java [ERROR] org.apache.commons.lang.RandomStringUtils (Line: 37, Matched by: org.apache.commons.lang.**) ``` CI: https://github.com/adoroszlai/ozone/actions/runs/10367830837 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
