XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Critical Critical
    • EAP_EWP 5.1.2 CR3
    • EAP_EWP 5.1.2 CR1
    • HornetQ
    • None
    • Not Required

      There is IllegalStateException during failback.

      Test scenario:

      1. Start server A (messaging-19) and B (messaging-20) in collocated topology - servers contain backup for each other
      2. Start producer and consumer connected to server A
      3. During step 2. kill server A -> clients failover to backup on server B
      4. Start server A again -> sometimes IllegalStateException is thrown

      Server B log:
      07:47:32,795 ERROR [ServerSessionImpl] Failed to close session
      [JBoss] java.lang.IllegalStateException: Transaction is in invalid state COMMITTED
      [JBoss] at org.hornetq.core.transaction.impl.TransactionImpl.rollback(TransactionImpl.java:352)
      [JBoss] at org.hornetq.core.server.impl.ServerSessionImpl.doRollback(ServerSessionImpl.java:1373)
      [JBoss] at org.hornetq.core.server.impl.ServerSessionImpl.rollback(ServerSessionImpl.java:633)
      [JBoss] at org.hornetq.core.server.impl.ServerSessionImpl.doClose(ServerSessionImpl.java:292)
      [JBoss] at org.hornetq.core.server.impl.ServerSessionImpl.access$100(ServerSessionImpl.java:86)
      [JBoss] at org.hornetq.core.server.impl.ServerSessionImpl$1.done(ServerSessionImpl.java:1030)
      [JBoss] at org.hornetq.core.persistence.impl.journal.OperationContextImpl.executeOnCompletion(OperationContextImpl.java:188)
      [JBoss] at org.hornetq.core.persistence.impl.journal.JournalStorageManager.afterCompleteOperations(JournalStorageManager.java:435)
      [JBoss] at org.hornetq.core.server.impl.ServerSessionImpl.close(ServerSessionImpl.java:1020)
      [JBoss] at org.hornetq.core.server.impl.HornetQServerImpl.stop(HornetQServerImpl.java:495)
      [JBoss] at org.hornetq.core.server.impl.HornetQServerImpl.stop(HornetQServerImpl.java:461)
      [JBoss] at org.hornetq.core.server.impl.HornetQServerImpl$FailbackChecker$1.run(HornetQServerImpl.java:1822)
      [JBoss] at java.lang.Thread.run(Thread.java:662)

      Server A log during "IllegalStateException: Transaction is in invalid state COMMITTED" -
      [JBoss] 07:47:31,909 INFO [AIOFileLockNodeManager] Waiting to obtain live lock
      [JBoss] 07:47:32,836 WARN [RemotingConnectionImpl] Connection failure has been detected: The connection was disconnected because of server shutdown [code=4]
      [JBoss] 07:47:33,911 INFO [AIOFileLockNodeManager] Live Server Obtained live lock

      Log from server B in hudson job:
      http://hudson.qa.jboss.com/hudson/view/EAP5/view/HornetQ-Perf/job/eap51-hornetq-failback-chain-jms-client/66/console-messaging-20/

      Note:
      This exception occurs after NPE described in JBPAPP-7606 was thrown. Similarly as for JBPAPP-7613. It's possible that is only consequence of it. I'm setting lower priority. This IlllegalStateException is thrown only sometimes.

              csuconic@redhat.com Clebert Suconic
              mnovak1@redhat.com Miroslav Novak
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: