RFR: 8219585: [TESTBUG] sun/management/jmxremote/bootstrap/JMXInterfaceBindingTest.java passes trivially when it shouldn't

Daniel Fuchs daniel.fuchs at oracle.com
Fri Mar 1 15:08:44 UTC 2019


Hi Severin,

On 28/02/2019 15:47, Severin Gehwolf wrote:
> Yes, thanks for looking at this Daniel. That was my determination as
> well. However, even if we do all of the above, and add a test config
> with /etc/hosts mapping a non-loopback address to "localhost" it would
> break other tests. E.g. this one:
> java/net/InetAddress/GetLocalHostWithSM.java
> 
> So I'd have to explore whether your suggestion with
> InetAddress.getLocalHost() is viable. It seems promising.
> 
> I'll keep you posted.

Thanks for keeping the investigation going!

For what it's worth this is what I have been experimenting with:
http://cr.openjdk.java.net/~dfuchs/experiment-8219585/experiment.00/

It's only a POC and obviously need more cleaning.
Maybe some of the arbitrary timeouts in the test could be scaled
in accordance to timeout-factor (I think there's an adjustTimeout(long)
function somewhere in the test libs that does that).

I ran it 50 times in our test system - and it passed on all platforms,
so there's yet hope :-)

hope this helps,

-- daniel




More information about the serviceability-dev mailing list