mitsa-ng opened a new pull request, #12141:
URL: https://github.com/apache/ozone/pull/12141

   JIRA: https://issues.apache.org/jira/browse/HDDS-17907
   
   ## What / Why
   
   HDDS-17885 added `testNoDuplicatedKeys()` to `TestOzoneClientConfig` for 
`OzoneClientConfig`. Per the JIRA, this extends the same assertion to the 
remaining classes using `@Config`.
   
   ## What this does
   
   - `hadoop-hdds/client`: `TestOzoneClientConfig#testNoDuplicatedKeys` now 
also covers `XceiverClientManager`
   - `hadoop-hdds/common`, `container-service`, `framework`, `server-scm`, 
`hadoop-ozone/common`, `ozone-manager`, `recon`: one new `TestNoDuplicatedKeys` 
per module, calling `ConfigurationReflectionUtil.assertNoDuplicatedKeys` for 
every `@ConfigGroup` class found in that module's main sources (35 classes in 
total)
   
   Test packages deliberately avoid `org.apache.hadoop.hdds.conf`: the util 
lives in that package in the `hadoop-hdds/config` module, and placing a 
same-named-package test there makes checkstyle's RedundantImportCheck flag the 
required cross-module import.
   
   ## Verification
   
   - `mvn -pl <the 8 modules> -am checkstyle:check test 
-Dtest='TestNoDuplicatedKeys,TestOzoneClientConfig'`: all green, checkstyle 
reports 0 errors
   - All tests pass on trunk, so no duplicated keys exist today; these tests 
are regression guards


-- 
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]

Reply via email to