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

Deadlock occurs when implementing two mina StateMachine

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Won't Fix
    • Affects Version/s: 2.0.0-M2
    • Fix Version/s: 2.0.8
    • Component/s: Statemachine
    • Labels:
      None
    • Environment:
      Bug found under:
       - windows vista business edition
      - dual core intel machine
      - jdk6_update6

      Description

      For mailing list discussion on the issue, see:
      http://mina.markmail.org/message/hp2bkg56sf5f6l56?q=list:org.apache.mina.users&page=1#query:list%3Aorg.apache.mina.users+page:1+mid:l6up4s36uag6yvll+state:results

      With the mailing list thread is included a jstack stack trace to illustrate the deadlock.

      A deadlock occurs when a Mina StateMachine's Filter (A) reads data using messageReceived() while another mina StateMachine's Filter (B) write data at the same time using filterWrite().

      My current oberservation show that what witch I thought only occured rarely happens in fact very frequently when there are few concurrent connections! (Basically the faster we can get a response to a request, the more likely the chance of this situation happening!)

      The effect of such a deadlock is that it freezes the whole application without possibility of recovering.

        Activity

        Hide
        elecharny Emmanuel Lecharny added a comment -

        It would be cool if this could be fixed in 2.0

        Show
        elecharny Emmanuel Lecharny added a comment - It would be cool if this could be fixed in 2.0
        Hide
        elecharny Emmanuel Lecharny added a comment -

        Postoned to the next version.

        Having those StateMachine mechanism available is cool, but if nobody can maintain it, at some point, we will have to move it to the sandbox.

        Show
        elecharny Emmanuel Lecharny added a comment - Postoned to the next version. Having those StateMachine mechanism available is cool, but if nobody can maintain it, at some point, we will have to move it to the sandbox.
        Hide
        elecharny Emmanuel Lecharny added a comment -

        The StateMachine code has no maintainer. I'm not sure it has users either...

        This issue can be reopened as soon as someone is willing to fix it.

        Show
        elecharny Emmanuel Lecharny added a comment - The StateMachine code has no maintainer. I'm not sure it has users either... This issue can be reopened as soon as someone is willing to fix it.

          People

          • Assignee:
            Unassigned
            Reporter:
            simontrudeau simon trudeau
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development