Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-890

File descriptor in bad state

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Major
    • None
    • 1.4.0.Final
    • None
    • None

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              sdouglas1@redhat.com Stuart Douglas
              bsikora Bogdan Sikora (Inactive)
              Jan Kašík Jan Kašík
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: