jmx-dev RFR: 8022220 Intermittent test failures in javax/management/remote/mandatory/connection/RMIConnectionIdTest.java
Dmitry Samersoff
dmitry.samersoff at oracle.com
Wed Oct 2 07:11:02 PDT 2013
Jaroslav,
As a far as loopback address could be resolved to any of 127.0.0.0/8
client and server have to use the same loopback address.
Generally speaking it's not required for 127.0.1.1 to be able to talk to
127.0.0.1 and we are in risk to get a weird fail instead of clear error
message.
-Dmitry
On 2013-09-11 18:51, Jaroslav Bachorik wrote:
> Please, review this simple patch for an intermittently failing test.
>
> The test fails in cases when the connection loopback is resolved to be
> 127.0.1.1 - it may happen under certain circumstances in eg. Ubuntu. The
> test does not anticipate this possibility and requires the loopback
> address to be exactly 127.0.0.1
>
> The test will end comparing 127.0.0.1 against 127.0.1.1 and will
> consider them non equal even though they are both the same loopback. The
> patch adds a bit of flexibility to the test allowing for any two valid
> loopback addresses (127.0.0.0/8) to be equal.
>
> Issue : JDK-8022220
> Webrev : http://cr.openjdk.java.net/~jbachorik/8022220/webrev.00
>
> Thanks,
>
> -JB-
>
--
Dmitry Samersoff
Oracle Java development team, Saint Petersburg, Russia
* I would love to change the world, but they won't give me the sources.
More information about the serviceability-dev
mailing list