Skip to content

[ISSUE #2465] fix(nameserver): deduplicate DNS address case - #2469

Open
yuluo-yx wants to merge 1 commit into
apache:rocketmq-studiofrom
yuluo-yx:0820-yuluo-yx/fix-15
Open

[ISSUE #2465] fix(nameserver): deduplicate DNS address case#2469
yuluo-yx wants to merge 1 commit into
apache:rocketmq-studiofrom
yuluo-yx:0820-yuluo-yx/fix-15

Conversation

@yuluo-yx

@yuluo-yx yuluo-yx commented Aug 20, 2026

Copy link
Copy Markdown
Member

Summary

  • deduplicate simple DNS host-and-port addresses case-insensitively
  • preserve the first address for display and probing
  • leave IPv6 and zone-qualified addresses untouched

Verification

  • NameServerConfigDiffServiceTest: 9 tests passed
  • Checkstyle passed with 0 violations
  • scope check: 34 changed lines

Fixes #2465

Signed-off-by: yuluo-yx <yuluo08290126@gmail.com>

@RockteMQ-AI RockteMQ-AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Summary

Deduplicates NameServer addresses case-insensitively for DNS hostnames, preventing duplicate connections when the same host is specified with different cases (e.g., ns.example.com vs NS.EXAMPLE.COM).

Strengths:

  • Correct handling of IPv4 vs DNS (only lowercases DNS hostnames)
  • Preserves original address format in output
  • Skips IPv6 addresses (contains multiple colons) and zone IDs (contains %)
  • Test verifies the deduplication behavior

LGTM — important fix for DNS-based deployments.


Automated review by github-manager-bot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants