8075569: jmap test fails due to "ERROR: java.nio.file.NoSuchFileException: 2906081d-06bc-4738-a7e8-f37b8bf13658.lck"
authordsamersoff
Mon, 23 Mar 2015 02:29:47 -0700
changeset 29598 d437190d9f9a
parent 29597 3c8b5093625e
child 29599 e2c48b046f91
child 29600 3c042ba9fd42
8075569: jmap test fails due to "ERROR: java.nio.file.NoSuchFileException: 2906081d-06bc-4738-a7e8-f37b8bf13658.lck" Summary: Lock file is deleted while we are setting modified time Reviewed-by: alanb
jdk/test/sun/tools/jmap/heapconfig/LingeredApp.java
--- a/jdk/test/sun/tools/jmap/heapconfig/LingeredApp.java	Mon Mar 23 15:37:03 2015 +0800
+++ b/jdk/test/sun/tools/jmap/heapconfig/LingeredApp.java	Mon Mar 23 02:29:47 2015 -0700
@@ -417,7 +417,9 @@
                 setLastModified(theLockFileName, epoch());
                 Thread.sleep(spinDelay);
             }
-
+        } catch (NoSuchFileException ex) {
+            // Lock deleted while we are setting last modified time.
+            // Ignore error and lets the app exits
         } catch (Exception ex) {
             System.err.println("LingeredApp ERROR: " + ex);
             // Leave exit_code = 1 to Java launcher