Skip to content

JGRP-2997 Util.parseCommaDelimitedHostsInto returns no addresses when… - #1009

Closed
rhusar wants to merge 1 commit into
belaban:masterfrom
rhusar:JGRP-2997
Closed

JGRP-2997 Util.parseCommaDelimitedHostsInto returns no addresses when…#1009
rhusar wants to merge 1 commit into
belaban:masterfrom
rhusar:JGRP-2997

Conversation

@rhusar

@rhusar rhusar commented Apr 10, 2026

Copy link
Copy Markdown
Collaborator

… called with StackType.Dual

https://redhat.atlassian.net/browse/JGRP-2997

… called with StackType.Dual

Signed-off-by: Radoslav Husar <radosoft@gmail.com>
@rhusar

rhusar commented Apr 10, 2026

Copy link
Copy Markdown
Collaborator Author

So, this fixes the dead code and conditions that can never be met (inet == null is always false).

However this is never called with StackType.Dual as org.jgroups.protocols.TCPPING#stack_type defaults to Dual BUT it gets overriden in TCPPING#init to specific stack.

@rhusar

rhusar commented Apr 10, 2026

Copy link
Copy Markdown
Collaborator Author

The context for this is jgroups-extras/jgroups-kubernetes#309 – Implement support for KUBE_PING to discover IPs for pods with multiple IPs/dualstack especially IPv6 matching the transport stack
– where I would want to do this without explicit configuration just by consulting the bind address of the transport:

boolean preferIPv6 = transport.getBindAddr() instanceof Inet6Address;

however, I am discovering issues with how Dual stack is being handled here in jgroups.

@belaban

belaban commented Apr 10, 2026

Copy link
Copy Markdown
Owner

Removed the inner ports for-loop if add is false, applied manually

@belaban belaban closed this Apr 10, 2026
@rhusar
rhusar deleted the JGRP-2997 branch May 19, 2026 11:03
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