8227337: javax/management/remote/mandatory/connection/ReconnectTest.java NoSuchObjectException no such object in table

Reviewed-by: phh
This commit is contained in:
Daniil Titov 2020-07-07 10:18:53 -07:00
parent a6cf325152
commit 50e18e29e3
3 changed files with 11 additions and 8 deletions

View File

@ -576,7 +576,6 @@ java/lang/management/MemoryMXBean/Pending.java 8158837 generic-
java/lang/management/MemoryMXBean/PendingAllGC.sh 8158837 generic-all
javax/management/monitor/DerivedGaugeMonitorTest.java 8042211 generic-all
javax/management/remote/mandatory/connection/MultiThreadDeadLockTest.java 8227337 generic-all
############################################################################

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2008, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -40,11 +40,14 @@ import javax.management.remote.JMXConnectorServerFactory;
import javax.management.remote.JMXServiceURL;
import javax.management.remote.rmi.RMIConnectorServer;
import jdk.test.lib.Utils;
/*
* @test
* @bug 6697180
* @summary test on a client notification deadlock.
* @author Shanliang JIANG
* @library /test/lib
*
* @run clean MultiThreadDeadLockTest
* @run build MultiThreadDeadLockTest
@ -53,7 +56,7 @@ import javax.management.remote.rmi.RMIConnectorServer;
public class MultiThreadDeadLockTest {
private static long serverTimeout = 500L;
private static long serverTimeout = Utils.adjustTimeout(500);
public static void main(String[] args) throws Exception {
print("Create the MBean server");

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -26,15 +26,16 @@
* @bug 4927217
* @summary test to reconnect
* @author Shanliang JIANG
*
* @library /test/lib
* @run clean ReconnectTest
* @run build ReconnectTest
* @run main ReconnectTest
*/
import jdk.test.lib.Utils;
import java.util.*;
import java.net.MalformedURLException;
import java.io.IOException;
import javax.management.*;
import javax.management.remote.*;
@ -46,7 +47,7 @@ public class ReconnectTest {
private static HashMap env = new HashMap(2);
static {
String timeout = "1000";
String timeout = Long.toString(Utils.adjustTimeout(1000));
env.put("jmx.remote.x.server.connection.timeout", timeout);
env.put("jmx.remote.x.client.connection.check.period", timeout);
}
@ -104,7 +105,7 @@ public class ReconnectTest {
for (int i=0; i<3; i++) {
System.out.println("************** Sleeping ...... "+i);
Thread.sleep(2000);
Thread.sleep(Utils.adjustTimeout(2000));
System.out.println("Sleep done.");
System.out.println("The default domain is "