Uploaded image for project: 'XNIO'
  1. XNIO
  2. XNIO-301

Will get I/O Exception Invalid argument in JDK 1.8 macOS 10.12.6

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.4.0.Final
    • Fix Version/s: None
    • Component/s: nio-impl
    • Labels:
      None
    • Environment:

      Description

      When running Wildfly 10 in macOS, I always get the error like this for the server:

      WARN [org.xnio.nio.selector] (default I/O-16) XNIO008000: Received an I/O error on selection: java.io.IOException: Invalid argument

      Lots and lots of them. It will block the server's response, and consume lots of CPU.

      I've investigate it and found this:

      https://bugs.openjdk.java.net/browse/JDK-8165000

      It seems that in Java 8 "Selector.select(timeout) throws an IOException when timeout is larger than 100000000999L".

      And the root cause of that is:

      In JDK 8, kevent() appears to return -1 and set errno to EINVAL if the timeout is >= 100000001000L.

      There should be some work around for this, and this annoying bug is indeed affect the usage of Wildfly 10 on macOS.

      Please sort it out.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jackthinkingjboss Jack Wise
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: