[jboss-jira] [JBoss JIRA] Commented: (JGRP-961) Tests passing under IPv4 but failing under IPv6 in JGroups 2.4.5

Richard Achmatowicz (JIRA) jira-events at lists.jboss.org
Fri Apr 24 12:52:47 EDT 2009


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

Richard Achmatowicz commented on JGRP-961:
------------------------------------------

I've written two small programs, ServerSocketSender and ServerSocketReceiver, which demonstrate the problem.

These programs work fine on JDK 4,5,6 with IPv4 addresses:

> java -Djava.net.preferIPv4Stack=true -Djava.net.preferIPv6Addresses=false -cp .  ServerSocketReceiver -bind_addr 192.168.0.100 -port 1234
bind_addr = 192.168.0.100
port = 1234
Hello from client!(0)
Hello from client!(1)
Hello from client!(2)
Hello from client!(3)
Hello from client!(4)
Hello from client!(5)
Hello from client!(6)
Hello from client!(7)
Hello from client!(8)
Hello from client!(9)

>  java -Djava.net.preferIPv4Stack=true -Djava.net.preferIPv6Addresses=false -cp .  ServerSocketSender -bind_addr 192.168.0.100 -port 1234
bind_addr = 192.168.0.100
port = 1234
sock_read_timeout = 0
sock_conn_timeout = 5
Connected to host: /192.168.0.100, port: 1234
Hello from client!(0)(bounced by server)
Connected to host: /192.168.0.100, port: 1234
Hello from client!(1)(bounced by server)
Connected to host: /192.168.0.100, port: 1234
Hello from client!(2)(bounced by server)
Connected to host: /192.168.0.100, port: 1234
Hello from client!(3)(bounced by server)
Connected to host: /192.168.0.100, port: 1234
Hello from client!(4)(bounced by server)
Connected to host: /192.168.0.100, port: 1234
Hello from client!(5)(bounced by server)
Connected to host: /192.168.0.100, port: 1234
Hello from client!(6)(bounced by server)
Connected to host: /192.168.0.100, port: 1234
Hello from client!(7)(bounced by server)
Connected to host: /192.168.0.100, port: 1234
Hello from client!(8)(bounced by server)
Connected to host: /192.168.0.100, port: 1234
Hello from client!(9)(bounced by server)

The same programs do not work with JDK 4 and 5 (but dow work with JDK 6):

> java -Djava.net.preferIPv4Stack=false -Djava.net.preferIPv6Addresses=true -cp . ServerSocketReceiver -bind_addr fe80::215:58ff:fec8:81a8 -port 1234
bind_addr = fe80::215:58ff:fec8:81a8
port = 1234
Hello from client!(0)


> java -Djava.net.preferIPv4Stack=false -Djava.net.preferIPv6Addresses=true -cp . ServerSocketSender -bind_addr fe80::215:58ff:fec8:81a8 -port 1234
bind_addr = fe80::215:58ff:fec8:81a8
port = 1234
sock_read_timeout = 0
sock_conn_timeout = 5
Connected to host: /fe80:0:0:0:215:58ff:fec8:81a8, port: 1234
Hello from client!(0)(bounced by server)
exception connecting to host: /fe80:0:0:0:215:58ff:fec8:81a8, port: 1234java.net.SocketTimeoutException: connect timed out
exception details = java.net.SocketTimeoutException: connect timed out
exception connecting to host: /fe80:0:0:0:215:58ff:fec8:81a8, port: 1234java.net.SocketTimeoutException: connect timed out
exception details = java.net.SocketTimeoutException: connect timed out
exception connecting to host: /fe80:0:0:0:215:58ff:fec8:81a8, port: 1234java.net.SocketTimeoutException: connect timed out
exception details = java.net.SocketTimeoutException: connect timed out
exception connecting to host: /fe80:0:0:0:215:58ff:fec8:81a8, port: 1234java.net.SocketTimeoutException: connect timed out
exception details = java.net.SocketTimeoutException: connect timed out
exception connecting to host: /fe80:0:0:0:215:58ff:fec8:81a8, port: 1234java.net.SocketTimeoutException: connect timed out
exception details = java.net.SocketTimeoutException: connect timed out
exception connecting to host: /fe80:0:0:0:215:58ff:fec8:81a8, port: 1234java.net.SocketTimeoutException: connect timed out
exception details = java.net.SocketTimeoutException: connect timed out
exception connecting to host: /fe80:0:0:0:215:58ff:fec8:81a8, port: 1234java.net.SocketTimeoutException: connect timed out
exception details = java.net.SocketTimeoutException: connect timed out
exception connecting to host: /fe80:0:0:0:215:58ff:fec8:81a8, port: 1234java.net.SocketTimeoutException: connect timed out
exception details = java.net.SocketTimeoutException: connect timed out
exception connecting to host: /fe80:0:0:0:215:58ff:fec8:81a8, port: 1234java.net.SocketTimeoutException: connect timed out
exception details = java.net.SocketTimeoutException: connect timed out


> Tests passing under IPv4 but failing under IPv6 in JGroups 2.4.5
> ----------------------------------------------------------------
>
>                 Key: JGRP-961
>                 URL: https://jira.jboss.org/jira/browse/JGRP-961
>             Project: JGroups
>          Issue Type: Bug
>    Affects Versions: 2.4.5
>         Environment: Fedora 9, JDK 1.4.2, JDK 1.5.0 
>            Reporter: Richard Achmatowicz
>            Assignee: Richard Achmatowicz
>            Priority: Minor
>             Fix For: 2.4.6
>
>
> When running the JGroups testsuite against IPv6 addresses (as opposed to IPv4 addresses), some tests pass on IPv4 but fail on IPv6.
> This is an issue as IPv6 compatability is quickly becoming an important issue for EAP.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list