HDDS-16018. Use configured DNS-to-switch mapping directly in SCM - #10911
HDDS-16018. Use configured DNS-to-switch mapping directly in SCM#10911F64116045 wants to merge 1 commit into
Conversation
|
cc: @hevinhsu |
|
Thanks @F64116045 for the patch! The change looks good to me. I also found that HDFS I noticed a few details that I’d like to confirm with the maintainers:
If this behavior change is accepted, I think we should also raise a follow-up issue to update the corresponding topology documentation in |
|
Thanks @hevinhsu for adding the context! Yes, I think this could affect custom I agree this compatibility point should be confirmed by the maintainers. For OM, if this behavior change is accepted, I’m happy to help with the OM side as well, either in this PR or as a follow-up. |
What changes were proposed in this pull request?
This change updates SCM to instantiate the configured
DNSToSwitchMappingdirectly instead of wrapping every non-cached mapping inCachedDNSToSwitchMapping.This follows up on the topology mapping behavior discussed in apache/ozone#10598, where static host-to-rack mappings should not be affected by an additional SCM-side cache wrapper.
The default mapping behavior remains cached because Hadoop
ScriptBasedMappingalready extendsCachedDNSToSwitchMapping. Using configured mappings directly avoids changing their input through the cache wrapper hostname normalization step, which is important for mappings such asStaticMapping.The patch also adds focused SCM coverage for the default cached mapping 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?
CI: https://github.com/F64116045/ozone/actions/runs/30590053420