Uploaded image for project: 'MINA'
  1. MINA
  2. DIRMINA-1076

Leaking NioProcessors/NioSocketConnectors hanging in call to dispose

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.16
    • Fix Version/s: 2.0.17
    • Component/s: Core
    • Labels:
      None

      Description

      Follow-up to mailing list discussion.

      I was now able to reproduce the problem with a MINA test. Or let's say I did the brute-force approach by re-running one test in an endless loop.
      I have attached a patch of AbstractIoServiceTest (against https://github.com/apache/mina/tree/2.0) and a stack trace. After a few loops the test is stuck. You can see a lot of threads hanging in dispose() and the test is stuck when it tries to dispose the acceptor.

      What is a little strange is that the javadoc says that connector.dispose(TRUE) should not be called from an IoFutureListener, but in the test it is done anyway. However, changing the parameter to FALSE does not help either.

      Is there anything that can be done to prevent this hang?

        Attachments

        1. mina-test-log.txt
          4 kB
          Christoph John
        2. mina-dispose-hang.txt
          43 kB
          Christoph John
        3. mina-test-patch.txt
          3 kB
          Christoph John

          Issue Links

            Activity

              People

              • Assignee:
                johnnyv Jonathan Valliere
                Reporter:
                chrjohn Christoph John
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: