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

(aio) Multiple invocations of callback method leads to RuntimeException

XMLWordPrintable

    • x86_64
    • windows

      ADDITIONAL SYSTEM INFORMATION :
      OS Name: Microsoft Windows Server 2019 Standard
      OS Version: 10.0.17763 N/A Build 17763

      A DESCRIPTION OF THE PROBLEM :
      Using sun.nio.ch.* package to do asynchronous IO and once succes/fail call respecitve call back methods. It is calling same callback method twice
      Issue only occurs with Windows operating system and JDK/JRE 17.0.14.7 version, it is working fine with all other version of java on windows and with all java version on linux.

      Stack trace :
      ERROR 2025-03-03T12:37:04,119 Client:52 [pool-11-thread-2] Got Exception in thread:
      java.lang.RuntimeException: checkGreaterThan failed: , Check Failed: Number of inflight reads is not greater than 0
      at com.cohesity.commons.CheckUtils.check(CheckUtils.java:488) ~[backint.jar:?]
      at com.cohesity.commons.CheckUtils.checkGreaterThan(CheckUtils.java:206) ~[backint.jar:?]
      at com.cohesity.commons.CheckUtils.checkGreaterThan(CheckUtils.java:193) ~[backint.jar:?]
      at com.cohesity.plugins.sap.backint.base.util.FileReaderWriter$ReadCallBack.completed(FileReaderWriter.java:943) ~[backint.jar:?]
      at com.cohesity.plugins.sap.backint.base.util.FileReaderWriter$ReadCallBack.completed(FileReaderWriter.java:938) ~[backint.jar:?]
      at sun.nio.ch.Invoker.invokeUnchecked(Unknown Source) ~[?:?]
      at sun.nio.ch.Invoker.invokeDirect(Unknown Source) ~[?:?]
      at sun.nio.ch.Invoker.invoke(Unknown Source) ~[?:?]
      at sun.nio.ch.Invoker.invoke(Unknown Source) ~[?:?]
      at sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.failed(Unknown Source) ~[?:?]
      at sun.nio.ch.PendingIoCache$1.run(Unknown Source) ~[?:?]
      at sun.nio.ch.AsynchronousChannelGroupImpl$1.run(Unknown Source) ~[?:?]
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) ~[?:?]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) ~[?:?]
      at java.lang.Thread.run(Unknown Source) [?:?]

      REGRESSION : Last worked in version 11.0.26

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      It should execute callback method only once irrespective of success or failure.

            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: