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

Radoslav Husar (JIRA) issues at jboss.org
Fri Sep 5 08:59:01 EDT 2014


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

Radoslav Husar edited comment on JGRP-1878 at 9/5/14 8:58 AM:
--------------------------------------------------------------

{quote}So if we had IP_MULTICAST_ALL set to 1, we'd get the old behavior ?{quote}

If I am looking at the appropriate API for this, the problem is that this API is available only since JDK7:
http://docs.oracle.com/javase/7/docs/api/java/nio/channels/NetworkChannel.html#setOption(java.net.SocketOption,%20T)

Otherwise I don't see a  clean way to do this on JDK6.


was (Author: rhusar):
{quote}So if we had IP_MULTICAST_ALL set to 1, we'd get the old behavior ?{quote}

If I am looking at the appropriate API for this, the problem is that this API is available only since JDK7:
http://docs.oracle.com/javase/7/docs/api/java/nio/channels/NetworkChannel.html#setOption(java.net.SocketOption,%20T)

Otherwise there is no clean way to do this on JDK6.

> Multicast discovery does not work on JDK8
> -----------------------------------------
>
>                 Key: JGRP-1878
>                 URL: https://issues.jboss.org/browse/JGRP-1878
>             Project: JGroups
>          Issue Type: Bug
>    Affects Versions: 3.2.12, 3.5
>         Environment: OpenJDK8, OracleJDK8u40
>            Reporter: Radoslav Husar
>            Assignee: Radoslav Husar
>            Priority: Minor
>             Fix For: 3.2.14, 3.6
>
>         Attachments: mcast.java
>
>
> 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