Uploaded image for project: 'JBoss Messaging'
  1. JBoss Messaging
  2. JBMESSAGING-724

Client managed failover: messages sent to healthy server end up trying to connect to failed node

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Rejected
    • Affects Version/s: 1.0.1.GA, 1.2.0.Beta1
    • Fix Version/s: None
    • Component/s: JMS Remoting
    • Labels:
      None
    • Estimated Difficulty:
      Medium

      Description

      The attached test case creates connections to two standalone messaging AS
      servers. It initially sends messages to the first of servers until it fails. At this point,
      it switches to the second one.

      This works fine, but at some point in the failover, when the client is sending the
      messages to the second node, it fails because it attempts to send something again
      to the first server. This fails with java.net.ConnectException: Connection refused: connect
      because the first server is already down (replicated-1.0.1.GA-jbossmessaging.log: L12869 ).

      At line 1208, we shut down server 1 and we start trying to send messages to server 2. After
      sending a few messages successfully to server 2, suddenly, there's an attempt to connect
      back to server 1 which fails.

      I have attached a client log with TRACE on org.jboss and TestMultiConnectionMessageProducer.java
      which is the test case.

      I was able to replicate this is in 1.0.1.GA and 1.2.0.Beta1 but not 1.2.0.Alpha2.

      Forum link fix focuses on the message comsumption area (CallbackManager), but does not
      provide further information on what might have changed in 1.2.0.Alpha2 to indicate that this is trully solved.

        Attachments

          Activity

            People

            Assignee:
            ovidiu.feodorov Ovidiu Feodorov (Inactive)
            Reporter:
            galder.zamarreno Galder Zamarreño
            Archiver:
            samahaja Sagar Mahajan

              Dates

              Created:
              Updated:
              Resolved:
              Archived: