Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-5831

(7.1.0) Calling reload operation causes: "java.lang.InterruptedException"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • 7.1.0.DR6, 7.1.0.DR15, 7.1.0.DR18
    • ActiveMQ
    • None
    • Regression
    • Hide

      Steps to reproduce the issue - NOT 100% reproducer but I can hit the issue with every run of the test:

      git clone git://git.app.eng.bos.redhat.com/jbossqe/eap-tests-hornetq.git
      cd eap-tests-hornetq/scripts/
      scp jbossqa@10.40.4.81:~/tmp/jboss-eap-7.1.0.DR6-artemis-140.zip . # see private comment below for password
      # change path per location of jboss-eap-7.1.0.DR6-artemis-140.zip
      groovy -DEAP_ZIP_URL=file:///home/mnovak/tmp/jboss-eap-7.1.0.DR6-artemis-140.zip PrepareServers7.groovy
      export WORKSPACE=$PWD
      export JBOSS_HOME_1=$WORKSPACE/server1/jboss-eap
      export JBOSS_HOME_2=$WORKSPACE/server2/jboss-eap
      export JBOSS_HOME_3=$WORKSPACE/server3/jboss-eap
      export JBOSS_HOME_4=$WORKSPACE/server4/jboss-eap
      cd ../jboss-hornetq-testsuite/
      sh repeat_test_until_fail.sh CoreBridgeAttributesTestCase#writeReadAttributeHornetqCoreBridgeTest | tee test.log #this will run the test until it fails
      
      # check test.log file and search for java.lang.InterruptedException
      
      Show
      Steps to reproduce the issue - NOT 100% reproducer but I can hit the issue with every run of the test: git clone git: //git.app.eng.bos.redhat.com/jbossqe/eap-tests-hornetq.git cd eap-tests-hornetq/scripts/ scp jbossqa@10.40.4.81:~/tmp/jboss-eap-7.1.0.DR6-artemis-140.zip . # see private comment below for password # change path per location of jboss-eap-7.1.0.DR6-artemis-140.zip groovy -DEAP_ZIP_URL=file: ///home/mnovak/tmp/jboss-eap-7.1.0.DR6-artemis-140.zip PrepareServers7.groovy export WORKSPACE=$PWD export JBOSS_HOME_1=$WORKSPACE/server1/jboss-eap export JBOSS_HOME_2=$WORKSPACE/server2/jboss-eap export JBOSS_HOME_3=$WORKSPACE/server3/jboss-eap export JBOSS_HOME_4=$WORKSPACE/server4/jboss-eap cd ../jboss-hornetq-testsuite/ sh repeat_test_until_fail.sh CoreBridgeAttributesTestCase#writeReadAttributeHornetqCoreBridgeTest | tee test.log # this will run the test until it fails # check test.log file and search for java.lang.InterruptedException

      There is a regression against EAP 7.0.0.ER5. If server is reloaded multiple times then sometimes following exception is logged in server.log (attached):

      11:56:35,172 WARN  [org.apache.activemq.artemis.core.client] (Thread-0 (ActiveMQ-server-org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl$2@2b4ecad5-1022697750)) null: java.lang.InterruptedException
      	at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedNanos(AbstractQueuedSynchronizer.java:1039) [rt.jar:1.8.0_71]
      	at java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos(AbstractQueuedSynchronizer.java:1328) [rt.jar:1.8.0_71]
      	at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:277) [rt.jar:1.8.0_71]
      	at org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl.waitForTopology(ClientSessionFactoryImpl.java:453) [artemis-core-client-1.1.0.SP13-redhat-1.jar:1.1.0.SP13-redhat-1]
      	at org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:790) [artemis-core-client-1.1.0.SP13-redhat-1.jar:1.1.0.SP13-redhat-1]
      	at org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.connect(ServerLocatorImpl.java:614) [artemis-core-client-1.1.0.SP13-redhat-1.jar:1.1.0.SP13-redhat-1]
      	at org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.connect(ServerLocatorImpl.java:595) [artemis-core-client-1.1.0.SP13-redhat-1.jar:1.1.0.SP13-redhat-1]
      	at org.apache.activemq.artemis.core.server.cluster.ClusterController$ConnectRunnable.run(ClusterController.java:405) [artemis-server-1.1.0.SP13-redhat-1.jar:1.1.0.SP13-redhat-1]
      	at org.apache.activemq.artemis.utils.OrderedExecutorFactory$OrderedExecutor$ExecutorTask.run(OrderedExecutorFactory.java:100) [artemis-core-client-1.1.0.SP13-redhat-1.jar:1.1.0.SP13-redhat-1]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_71]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_71]
      	at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_71]
      

      Fast sequence of :reload calls causes that Artemis is stopped before Artemis managed to update its own cluster topology. (Note there is just one server and no other)

      Customer impact:
      There is no data inconsistency. Issue is logged warning during fast reloading.

      Test scenario:
      1. Start EAP 7.0.0.ER6 in standalone-full-ha.xml profile
      2. Call :reload multiple times in a quick succession

      Expected behavior:
      No interrupted exception will be logged.

            mtaylor1@redhat.com Martyn Taylor (Inactive)
            dtikhomi@redhat.com Dmitrii Tikhomirov
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: