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

JFR: Catch DirectoryIteratorException when scanning for .jfr files

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 17
    • Fix Version/s: 18
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      jfr
    • Resolved In Build:
      b16

      Description

      ommand line: [/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-17+32-2671/macosx-x64-open.jdk/jdk-17.jdk/Contents/Home/bin/java -cp /System/Volumes/Data/mesos/work_dir/slaves/35546316-ed70-4084-8244-d672e7734fd1-S109687/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/7791b72f-15af-47c8-97b8-05d50f618ff0/runs/29e4ae8d-7863-444c-8de9-7e439870af57/testoutput/test-support/jtreg_open_test_jdk_jdk_svc/classes/0/jdk/jfr/api/consumer/streaming/TestBaseRepositoryMultipleProcesses.d:/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-17+32-2671/src.full/open/test/jdk/jdk/jfr/api/consumer/streaming:/System/Volumes/Data/mesos/work_dir/slaves/35546316-ed70-4084-8244-d672e7734fd1-S109687/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/7791b72f-15af-47c8-97b8-05d50f618ff0/runs/29e4ae8d-7863-444c-8de9-7e439870af57/testoutput/test-support/jtreg_open_test_jdk_jdk_svc/classes/0/test/lib:/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-17+32-2671/src.full/open/test/lib:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6/1/bundles/jtreg-6+1.zip/jtreg/lib/javatest.jar:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6/1/bundles/jtreg-6+1.zip/jtreg/lib/jtreg.jar -Xmx768m -XX:MaxRAMPercentage=4.16667 -Djava.io.tmpdir=/System/Volumes/Data/mesos/work_dir/slaves/35546316-ed70-4084-8244-d672e7734fd1-S109687/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/7791b72f-15af-47c8-97b8-05d50f618ff0/runs/29e4ae8d-7863-444c-8de9-7e439870af57/testoutput/test-support/jtreg_open_test_jdk_jdk_svc/tmp -ea -esa -XX:StartFlightRecording -XX:FlightRecorderOptions:repository=multiple jdk.jfr.api.consumer.streaming.Application ./3_65479_1626620513503.lock Whatever ]
      [2021-07-18T15:01:53.771748Z] Gathering output for process 65485
      App started
      Application 3 status:
      Has repository: false
      Has lock file: true
      Is alive: true

      ----------System.err:(32/2781)----------
      java.nio.file.DirectoryIteratorException: java.nio.file.NoSuchFileException: multiple/2021_07_18_15_01_53_65483
      at java.base/sun.nio.fs.UnixDirectoryStream$UnixDirectoryIterator.readNextEntry(UnixDirectoryStream.java:169)
      at java.base/sun.nio.fs.UnixDirectoryStream$UnixDirectoryIterator.hasNext(UnixDirectoryStream.java:198)
      at jdk.jfr/jdk.jfr.internal.consumer.RepositoryFiles.updatePaths(RepositoryFiles.java:194)
      at jdk.jfr/jdk.jfr.internal.consumer.RepositoryFiles.updatePaths(RepositoryFiles.java:100)
      at jdk.jfr/jdk.jfr.internal.consumer.RepositoryFiles.lastPath(RepositoryFiles.java:78)
      at jdk.jfr/jdk.jfr.internal.consumer.EventDirectoryStream.processRecursionSafe(EventDirectoryStream.java:144)
      at jdk.jfr/jdk.jfr.internal.consumer.EventDirectoryStream.process(EventDirectoryStream.java:126)
      at jdk.jfr/jdk.jfr.internal.consumer.AbstractEventStream.execute(AbstractEventStream.java:266)
      at jdk.jfr/jdk.jfr.internal.consumer.AbstractEventStream$1.run(AbstractEventStream.java:289)
      at jdk.jfr/jdk.jfr.internal.consumer.AbstractEventStream$1.run(AbstractEventStream.java:286)
      at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
      at jdk.jfr/jdk.jfr.internal.consumer.AbstractEventStream.run(AbstractEventStream.java:286)
      at jdk.jfr/jdk.jfr.internal.consumer.AbstractEventStream.start(AbstractEventStream.java:237)
      at jdk.jfr/jdk.jfr.internal.consumer.EventDirectoryStream.start(EventDirectoryStream.java:108)
      at jdk.jfr.api.consumer.streaming.TestBaseRepositoryMultipleProcesses.main(TestBaseRepositoryMultipleProcesses.java:57)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:568)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:833)
      Caused by: java.nio.file.NoSuchFileException: multiple/2021_07_18_15_01_53_65483
      at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
      at java.base/sun.nio.fs.UnixException.asIOException(UnixException.java:115)
      at java.base/sun.nio.fs.UnixDirectoryStream$UnixDirectoryIterator.readNextEntry(UnixDirectoryStream.java:168)
      ... 20 more

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              egahlin Erik Gahlin
              Reporter:
              dholmes David Holmes
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: