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

(ch) RandomAccessFile.getChannel().lock() is uninterruptible

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 1.4.0
    • Fix Version/s: tbd
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Understanding:
      Cause Known
    • Introduced In Version:
    • CPU:
      x86_64
    • OS:
      windows_7

      Description

      The test case is in the attachment section
      I test it in
        java version "1.8.0_76-ea"
        Java(TM) SE Runtime Environment (build 1.8.0_76-ea-b04)
        Java HotSpot(TM) 64-Bit Server VM (build 25.76-b04, mixed mode)

      java -classpath bin -Dsubprocess.classpath=C:/space/jvm.28/misc/bin jazz103.pr109401.UninterruptableLock

      The output:

      Starting process: java -classpath C:\\Joshua\\task\\PR109401\\eclipse_ws\\test\\bin jazz103.pr109401.UninterruptableLock C:\Users\IBM_AD~1\AppData\Local\Temp\lock-5087312412291950334.tmp
      helper process: lock hold time expired
      [Thread-0] I/O error: (java.nio.channels.FileLockInterruptionException) null
      Interrupt took too long (28.305 seconds).
      Waited too long (28.316 seconds).
      Done.

      "Interrupt took too long (28.305 seconds) " is in the output , because the lock() was not interruptted

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bpb Brian Burkhalter
                Reporter:
                youdwei Deven You
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: