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

RejectedExecutionException when deploying in test org.jboss.as.test.clustering.cluster.web.ClusteredWebSimpleTestCase.testGracefulServeOnUndeploy

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.0.0.ER1
    • 7.0.0.DR13 (Alpha)
    • Clustering, Test Suite
    • None
    • Hide

      change jboss-eap-7.0/standalone/configuration/standalone-ha.xml and jboss-eap-7.0/standalone/configuration/standalone-full-ha.xml so that tcpgossip protocol will be used to make cluster:

          <subsystem xmlns="urn:jboss:domain:jgroups:4.0">
            <channels default="ee">
              <channel stack="tcp" name="ee"/>
            </channels>
            <stacks>
              <stack name="udp">
                NO CHANGE
              </stack>
              <stack name="tcp">
                <transport socket-binding="jgroups-tcp" type="TCP"/>
                <protocol type="TCPGOSSIP" xmlns="urn:jboss:domain:jgroups:4.0">
                  <property name="initial_hosts">localhost[12011]</property>
                  <property name="num_initial_members">2</property>
                </protocol>
                <protocol type="MERGE3"/>
                <protocol socket-binding="jgroups-tcp-fd" type="FD_SOCK"/>
                <protocol type="FD"/>
                <protocol type="VERIFY_SUSPECT"/>
                <protocol type="pbcast.NAKACK2"/>
                <protocol type="UNICAST3"/>
                <protocol type="pbcast.STABLE"/>
                <protocol type="pbcast.GMS"/>
                <protocol type="MFC"/>
                <protocol type="FRAG2"/>
              </stack>
            </stacks>
          </subsystem>
      

      run tcpgossip router
      java -cp `pwd`/jboss-eap-7.0/modules/system/layers/base/org/jboss/logging/main/jboss-logging-3.3.0.Final.jar:`pwd`/jboss-eap-7.0/modules/system/layers/base/org/jgroups/main/jgroups-3.6.6.Final.jar org.jgroups.stack.GossipRouter -port 12011 -bindaddress localhost -solinger 0 -sotimeout 0 -expiry 0

      run testsuite
      ./integration-tests.sh -fae -Dts.clustering -Dts.noSmoke -DextendedTests -Dmaven.test.failure.ignore=true -Dnode0=$MYTESTIP_1 -Dnode1=$MYTESTIP_2 -Dmcast=$MCAST_ADDR -Djboss.dist=`pwd`/jboss-eap-7.0 -Dmaven.repo.local=`pwd`/eap-local-maven-repository

      Show
      change jboss-eap-7.0/standalone/configuration/standalone-ha.xml and jboss-eap-7.0/standalone/configuration/standalone-full-ha.xml so that tcpgossip protocol will be used to make cluster: <subsystem xmlns= "urn:jboss:domain:jgroups:4.0" > <channels default= "ee" > <channel stack= "tcp" name= "ee" /> </channels> <stacks> <stack name= "udp" > NO CHANGE </stack> <stack name= "tcp" > <transport socket-binding= "jgroups-tcp" type= "TCP" /> <protocol type= "TCPGOSSIP" xmlns= "urn:jboss:domain:jgroups:4.0" > <property name= "initial_hosts" > localhost[12011] </property> <property name= "num_initial_members" > 2 </property> </protocol> <protocol type= "MERGE3" /> <protocol socket-binding= "jgroups-tcp-fd" type= "FD_SOCK" /> <protocol type= "FD" /> <protocol type= "VERIFY_SUSPECT" /> <protocol type= "pbcast.NAKACK2" /> <protocol type= "UNICAST3" /> <protocol type= "pbcast.STABLE" /> <protocol type= "pbcast.GMS" /> <protocol type= "MFC" /> <protocol type= "FRAG2" /> </stack> </stacks> </subsystem> run tcpgossip router java -cp `pwd`/jboss-eap-7.0/modules/system/layers/base/org/jboss/logging/main/jboss-logging-3.3.0.Final.jar:`pwd`/jboss-eap-7.0/modules/system/layers/base/org/jgroups/main/jgroups-3.6.6.Final.jar org.jgroups.stack.GossipRouter -port 12011 -bindaddress localhost -solinger 0 -sotimeout 0 -expiry 0 run testsuite ./integration-tests.sh -fae -Dts.clustering -Dts.noSmoke -DextendedTests -Dmaven.test.failure.ignore=true -Dnode0=$MYTESTIP_1 -Dnode1=$MYTESTIP_2 -Dmcast=$MCAST_ADDR -Djboss.dist=`pwd`/jboss-eap-7.0 -Dmaven.repo.local=`pwd`/eap-local-maven-repository

      org.jboss.as.test.clustering.cluster.web.ClusteredWebSimpleTestCase is failing.
      https://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/eap-7x-tcpgossip-maven-solaris/3/jdk=java18_default,label_exp=solaris10%20&&%20x86_64%20%20&&%20eap-sustaining/testReport/org.jboss.as.test.clustering.cluster.web/ClusteredWebSimpleTestCase%28ASYNC-tcp%29/testGracefulServeOnUndeploy/
      https://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/eap-7x-tcpgossip-maven-solaris/3/jdk=java18_default,label_exp=solaris10 && x86_64 && eap-sustaining/testReport/org.jboss.as.test.clustering.cluster.web/ClusteredWebSimpleTestCase(SYNC-tcp)/testGracefulServeOnUndeploy/

      WARN [org.wildfly.clustering.web.infinispan] (default task-18) WFLYCLWEBINF0006: Failed to schedule expiration/passivation of session PShvmFq6MDIrMz1wZP6MwVHydgu6_EMrtMyLm_x6 on primary owner.: java.util.concurrent.ExecutionException: java.util.concurrent.RejectedExecutionException: Task java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask@24aaa062 rejected from java.util.concurrent.ScheduledThreadPoolExecutor@2095202f[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0]
      at org.wildfly.clustering.server.dispatcher.SimpleCommandResponse.<init>(SimpleCommandResponse.java:43)
      at org.wildfly.clustering.server.dispatcher.LocalCommandDispatcher.executeOnNode(LocalCommandDispatcher.java:82)
      at org.wildfly.clustering.server.dispatcher.ChannelCommandDispatcher.executeOnNode(ChannelCommandDispatcher.java:146)
      at org.wildfly.clustering.web.infinispan.session.InfinispanSessionManager.lambda$executeOnPrimaryOwner$5(InfinispanSessionManager.java:195)
      at org.wildfly.clustering.ee.infinispan.RetryingInvoker.invoke(RetryingInvoker.java:70)
      at org.wildfly.clustering.web.infinispan.session.InfinispanSessionManager.executeOnPrimaryOwner(InfinispanSessionManager.java:192)
      at org.wildfly.clustering.web.infinispan.session.InfinispanSessionManager.schedule(InfinispanSessionManager.java:185)
      at org.wildfly.clustering.web.infinispan.session.InfinispanSessionManager$SchedulableSession.close(InfinispanSessionManager.java:462)
      at org.wildfly.clustering.web.undertow.session.DistributableSession.requestDone(DistributableSession.java:75)
      at io.undertow.servlet.spec.ServletContextImpl.updateSessionAccessTime(ServletContextImpl.java:767)
      at io.undertow.servlet.spec.HttpServletResponseImpl.responseDone(HttpServletResponseImpl.java:554)
      at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:331)
      at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:263)
      at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)
      at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:174)
      at io.undertow.server.Connectors.executeRootHandler(Connectors.java:198)
      at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:788)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:745)
      Caused by: java.util.concurrent.RejectedExecutionException: Task java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask@24aaa062 rejected from java.util.concurrent.ScheduledThreadPoolExecutor@2095202f[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0]
      at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2047)
      at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:823)
      at java.util.concurrent.ScheduledThreadPoolExecutor.delayedExecute(ScheduledThreadPoolExecutor.java:326)
      at java.util.concurrent.ScheduledThreadPoolExecutor.schedule(ScheduledThreadPoolExecutor.java:533)
      at org.wildfly.clustering.web.infinispan.session.SessionExpirationScheduler.schedule(SessionExpirationScheduler.java:101)
      at org.wildfly.clustering.web.infinispan.session.InfinispanSessionManager$1.lambda$schedule$0(InfinispanSessionManager.java:138)
      at java.util.ArrayList.forEach(ArrayList.java:1249)
      at org.wildfly.clustering.web.infinispan.session.InfinispanSessionManager$1.schedule(InfinispanSessionManager.java:138)
      at org.wildfly.clustering.web.infinispan.session.ScheduleSchedulerCommand.execute(ScheduleSchedulerCommand.java:48)
      at org.wildfly.clustering.web.infinispan.session.ScheduleSchedulerCommand.execute(ScheduleSchedulerCommand.java:35)
      at org.wildfly.clustering.server.dispatcher.LocalCommandDispatcher.executeOnNode(LocalCommandDispatcher.java:80)
      ... 18 more

              pferraro@redhat.com Paul Ferraro
              istraka@redhat.com Ivan Straka
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: