shuan1026 opened a new pull request, #11144: URL: https://github.com/apache/ozone/pull/11144
## What changes were proposed in this pull request? `ConfigurationSource.getClass` called `Class.forName(name)` on the property key after reading the configured class name into `valueString`. Implementations that do not inherit Hadoop `Configuration.getClass` therefore failed to load the configured class. Use `valueString`, matching `getClasses` and Hadoop `Configuration.getClass`. Added `getClassUsesConfiguredValueNotKey` in `TestConfigurationSource`, using `InMemoryConfigurationForTesting` (hits the default method, not Hadoop `Configuration.getClass`). ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-16322 ## How was this patch tested? - `mvn -pl :hdds-config test -Dtest=TestConfigurationSource` -- 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]
