apple / apple/servicetalk

DefaultDnsServiceDiscoverer sorts addresses by bytes which may remove address type precedence ordering

Open
#533 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1k
Forks
229
Avg merge
23h 23m
Merged PRs (30d)
16

Description

In order to determine uniqueness and use a stable ordering across look-ups `DefaultDnsServiceDiscoverer` sorts the resolved IPs by their bytes. This may ~reserve~ remove the address type precedence order provided by Netty.

Related:
https://github.com/servicetalk/servicetalk/pull/529#discussion_r279537161

Contributor guide

Open the contributing guide

Research direction

Start at DefaultDnsServiceDiscoverer and read the related pull request discussion at #529, especially the concern about sorting resolved IPs by bytes. Determine how to keep stable uniqueness ordering without removing Netty's address-type precedence. Done means lookups remain stable while preserving that precedence.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.