F64116045 opened a new pull request, #10911:
URL: https://github.com/apache/ozone/pull/10911

   ## What changes were proposed in this pull request?
   
   SCM now instantiates the configured `DNSToSwitchMapping` directly instead of 
wrapping every non-cached mapping in `CachedDNSToSwitchMapping`.
   
   The default mapping remains cached because Hadoop `ScriptBasedMapping` 
already extends `CachedDNSToSwitchMapping`. Using configured mappings directly 
avoids changing their input through the cache wrapper hostname normalization 
step, which is important for mappings such as `StaticMapping`.
   
   A focused SCM test was added to verify both the default cached behavior and 
direct configured mapping usage.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-16018
   
   ## How was this patch tested?
   
   ```
   mvn -B --no-transfer-progress -pl :hdds-server-scm -am 
-Dtest=TestStorageContainerManager,TestSCMBlockProtocolServer test -DskipShade 
-DskipRecon -DskipDocs
   git diff --check
   ```


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