[jboss-jira] [JBoss JIRA] (JGRP-1878) Multicast discovery does not work on JDK8

Bela Ban (JIRA) issues at jboss.org
Thu Sep 4 05:41:00 EDT 2014


    [ https://issues.jboss.org/browse/JGRP-1878?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12998758#comment-12998758 ] 

Bela Ban commented on JGRP-1878:
--------------------------------

OK, the problem is that IP_ADDR sets {{bind_addr}} in JGroups, which defines the interface on which the multicast socket join the multicast group.
So the first process joins on {{lo}} while the second joins on {{eth0}} (for example). This means the 2 processes won't receive each other's messages.
I don't know what caused JDK 8 to fail here, as the JGroups code hasn't changed recently.

SOLUTION: use {{bind_to_all_interfaces}} or {{bind_interfaces}}:
{code:xml}
<UDP bind_to_all_interfaces="true"/>
{code}

or

{code:xml}
<UDP bind_interfaces="eth0,lo"/>
{code}

> Multicast discovery does not work on JDK8
> -----------------------------------------
>
>                 Key: JGRP-1878
>                 URL: https://issues.jboss.org/browse/JGRP-1878
>             Project: JGroups
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 3.2.12, 3.5
>         Environment: OpenJDK8, OracleJDK8u40
>            Reporter: Radoslav Husar
>            Assignee: Bela Ban
>            Priority: Blocker
>             Fix For: 3.2.14, 3.6
>
>
> Multicast discovery does not work on JDK8 when using different bind IP addresses. This blocks EAP certification on JDK8.
> Steps to reproduce with draw, switch to JDK8:
> {noformat}
> export IP_ADDR=127.0.0.1
> ./draw.sh
> export IP_ADDR=192.168.1.10
> ./draw.sh
> {noformat}
> Everything works when binding to the same IP address or using JDK 6 or 7. Possibly a JDK8 bug..



--
This message was sent by Atlassian JIRA
(v6.3.1#6329)


More information about the jboss-jira mailing list