Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-12211

(7.0.z) File descriptor in bad state

XMLWordPrintable

    • Blocks Testing
    • Workaround Exists
    • Hide

      Add the following lines to the end of your standalone.conf, domain.conf, and/or appclient.conf:

      # Work around JDK bug on Solaris
      JAVA_OPTS="$JAVA_OPTS -Dxnio.nio.selector.main=sun.nio.ch.DevPollSelectorImpl"
      
      Show
      Add the following lines to the end of your standalone.conf , domain.conf , and/or appclient.conf : # Work around JDK bug on Solaris JAVA_OPTS="$JAVA_OPTS -Dxnio.nio.selector.main=sun.nio.ch.DevPollSelectorImpl"
    • EAP 7.0.9

      Issue:
      Removing/Unregistering of the worker is causing IOException.
      Issue was spotted only on solaris.
      Reproducer:

      1. Set up EAP7 as balancer with Eap7 as worker.
      2. Shutdown the worker and look for exception in balancer log
        2016-10-14 04:32:09,567 ERROR [stderr] (default I/O-30) Exception in thread "default I/O-30" java.lang.InternalError: java.io.IOException: File descriptor in bad state
        2016-10-14 04:32:09,569 ERROR [stderr] (default I/O-30) 	at sun.nio.ch.EventPortWrapper.release(EventPortWrapper.java:235)
        2016-10-14 04:32:09,569 ERROR [stderr] (default I/O-30) 	at sun.nio.ch.EventPortSelectorImpl.implDereg(EventPortSelectorImpl.java:144)
        2016-10-14 04:32:09,570 ERROR [stderr] (default I/O-30) 	at sun.nio.ch.SelectorImpl.processDeregisterQueue(SelectorImpl.java:149)
        2016-10-14 04:32:09,571 ERROR [stderr] (default I/O-30) 	at sun.nio.ch.EventPortSelectorImpl.doSelect(EventPortSelectorImpl.java:75)
        2016-10-14 04:32:09,572 ERROR [stderr] (default I/O-30) 	at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:86)
        2016-10-14 04:32:09,573 ERROR [stderr] (default I/O-30) 	at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:97)
        2016-10-14 04:32:09,573 ERROR [stderr] (default I/O-30) 	at org.xnio.nio.WorkerThread.run(WorkerThread.java:528)
        2016-10-14 04:32:09,575 ERROR [stderr] (default I/O-30) Caused by: java.io.IOException: File descriptor in bad state
        2016-10-14 04:32:09,576 ERROR [stderr] (default I/O-30) 	at sun.nio.ch.SolarisEventPort.port_dissociate(Native Method)
        2016-10-14 04:32:09,577 ERROR [stderr] (default I/O-30) 	at sun.nio.ch.EventPortWrapper.release(EventPortWrapper.java:233)
        2016-10-14 04:32:09,578 ERROR [stderr] (default I/O-30) 	... 6 more
        
      3. If exception is not present try it few times, tests show that exception is it there almost every time

            rhn-engineering-lgao Lin Gao
            pmackay@redhat.com Peter Mackay
            Michael Cada Michael Cada
            Michael Cada Michael Cada
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 2 days
                2d
                Remaining:
                Remaining Estimate - 2 days
                2d
                Logged:
                Time Spent - Not Specified
                Not Specified