Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8049344

MonitorVmStartTerminate fails intermittently

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 9
    • Fix Version/s: None
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
      svc

      Description

      The test contains a method for creating a file that is used for process signaling.

                  Files.write(path, new byte[0], StandardOpenOption.CREATE);
      - if (!Files.exists(path)) {
      - throw new Error("Newly created file " + path
      - + " does not exist!");
      - }
              }

      An unexpected exception may be thrown if file is removed between Files.write and .Files.exists. Fix is to remove Files.exist call.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                egahlin Erik Gahlin
                Reporter:
                egahlin Erik Gahlin
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: