Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-5808

IndexOutOfBoundsException after stopping deployment of HA Singleton deployment

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 12.0.0.Final
    • 10.0.0.CR5
    • Clustering
    • None

      Seen only once so far in failover tests - HA Singleton deployment scenarios. Is probably closely related to JBEAP-2254 as it occured during the events described there, namely:

      • redeploy will fail
      • This node will no longer operate as the singleton provider
      • IndexOutOfBoundsException appears, see the stacktrace below
      • the node is re-elected as the singleton provider and the deployment starts successfully

      Stacktrace:

      [JBossINF] [0m[31m05:51:00,920 ERROR [org.jgroups.protocols.pbcast.GMS] (Incoming-14,ee,perf19) JGRP000027: failed passing message up: java.lang.RuntimeException: org.infinispan.commons.CacheListenerException: ISPN000280: Caught exception [java.lang.IndexOutOfBoundsException] while invoking method [public void org.infinispan.container.versioning.NumericVersionGenerator$RankCalculator.calculateRank(org.infinispan.notifications.cachemanagerlistener.event.ViewChangedEvent)] on listener instance: org.infinispan.container.versioning.NumericVersionGenerator$RankCalculator@3118031c
      [JBossINF] 	at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.up(MessageDispatcher.java:689)
      [JBossINF] 	at org.jgroups.JChannel.up(JChannel.java:738)
      [JBossINF] 	at org.jgroups.fork.ForkProtocolStack.up(ForkProtocolStack.java:123)
      [JBossINF] 	at org.jgroups.stack.Protocol.up(Protocol.java:374)
      [JBossINF] 	at org.jgroups.protocols.FORK.up(FORK.java:118)
      [JBossINF] 	at org.jgroups.protocols.FRAG2.up(FRAG2.java:165)
      [JBossINF] 	at org.jgroups.protocols.FlowControl.up(FlowControl.java:394)
      [JBossINF] 	at org.jgroups.protocols.FlowControl.up(FlowControl.java:394)
      [JBossINF] 	at org.jgroups.protocols.pbcast.GMS.installView(GMS.java:735)
      [JBossINF] 	at org.jgroups.protocols.pbcast.CoordGmsImpl.handleViewChange(CoordGmsImpl.java:244)
      [JBossINF] 	at org.jgroups.protocols.pbcast.GMS.up(GMS.java:925)
      [JBossINF] 	at org.jgroups.stack.Protocol.up(Protocol.java:412)
      [JBossINF] 	at org.jgroups.protocols.pbcast.STABLE.up(STABLE.java:294)
      [JBossINF] 	at org.jgroups.protocols.UNICAST3.up(UNICAST3.java:474)
      [JBossINF] 	at org.jgroups.protocols.pbcast.NAKACK2.deliverBatch(NAKACK2.java:982)
      [JBossINF] 	at org.jgroups.protocols.pbcast.NAKACK2.removeAndPassUp(NAKACK2.java:912)
      [JBossINF] 	at org.jgroups.protocols.pbcast.NAKACK2.handleMessage(NAKACK2.java:846)
      [JBossINF] 	at org.jgroups.protocols.pbcast.NAKACK2.up(NAKACK2.java:618)
      [JBossINF] 	at org.jgroups.protocols.VERIFY_SUSPECT.up(VERIFY_SUSPECT.java:155)
      [JBossINF] 	at org.jgroups.protocols.FD_ALL.up(FD_ALL.java:200)
      [JBossINF] 	at org.jgroups.protocols.FD_SOCK.up(FD_SOCK.java:310)
      [JBossINF] 	at org.jgroups.protocols.MERGE3.up(MERGE3.java:285)
      [JBossINF] 	at org.jgroups.protocols.Discovery.up(Discovery.java:295)
      [JBossINF] 	at org.jgroups.protocols.TP.passMessageUp(TP.java:1577)
      [JBossINF] 	at org.jgroups.protocols.TP$3.run(TP.java:1511)
      [JBossINF] 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      [JBossINF] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      [JBossINF] 	at java.lang.Thread.run(Thread.java:745)
      [JBossINF] Caused by: org.infinispan.commons.CacheListenerException: ISPN000280: Caught exception [java.lang.IndexOutOfBoundsException] while invoking method [public void org.infinispan.container.versioning.NumericVersionGenerator$RankCalculator.calculateRank(org.infinispan.notifications.cachemanagerlistener.event.ViewChangedEvent)] on listener instance: org.infinispan.container.versioning.NumericVersionGenerator$RankCalculator@3118031c
      [JBossINF] 	at org.infinispan.notifications.impl.AbstractListenerImpl$ListenerInvocationImpl$1.run(AbstractListenerImpl.java:291)
      [JBossINF] 	at org.infinispan.util.concurrent.WithinThreadExecutor.execute(WithinThreadExecutor.java:21)
      [JBossINF] 	at org.infinispan.notifications.impl.AbstractListenerImpl$ListenerInvocationImpl.invoke(AbstractListenerImpl.java:309)
      [JBossINF] 	at org.infinispan.notifications.cachemanagerlistener.CacheManagerNotifierImpl.notifyViewChange(CacheManagerNotifierImpl.java:88)
      [JBossINF] 	at org.infinispan.remoting.transport.jgroups.JGroupsTransport$NotifyViewChange.emitNotification(JGroupsTransport.java:774)
      [JBossINF] 	at org.infinispan.remoting.transport.jgroups.JGroupsTransport.viewAccepted(JGroupsTransport.java:850)
      [JBossINF] 	at org.jgroups.blocks.MessageDispatcher.handleUpEvent(MessageDispatcher.java:605)
      [JBossINF] 	at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.up(MessageDispatcher.java:686)
      [JBossINF] 	... 27 more
      [JBossINF] Caused by: java.lang.IndexOutOfBoundsException: Index: 0
      [JBossINF] 	at org.infinispan.commons.util.InfinispanCollections$EmptyList.get(InfinispanCollections.java:115)
      [JBossINF] 	at org.infinispan.container.versioning.NumericVersionGenerator.findAddressRank(NumericVersionGenerator.java:115)
      [JBossINF] 	at org.infinispan.container.versioning.NumericVersionGenerator.calculateRank(NumericVersionGenerator.java:101)
      [JBossINF] 	at org.infinispan.container.versioning.NumericVersionGenerator$RankCalculator.calculateRank(NumericVersionGenerator.java:126)
      [JBossINF] 	at sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source)
      [JBossINF] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      [JBossINF] 	at java.lang.reflect.Method.invoke(Method.java:497)
      [JBossINF] 	at org.infinispan.notifications.impl.AbstractListenerImpl$ListenerInvocationImpl$1.run(AbstractListenerImpl.java:286)
      [JBossINF] 	... 34 more
      

      Link:
      http://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/eap-7x-failover-singleton-deployment-shutdown-name-preferences/5/console-perf19/

              pferraro@redhat.com Paul Ferraro
              mvinkler1@redhat.com Michal Vinkler
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: