Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-11459

NullPointerException installing continuous query listener on joiner

XMLWordPrintable

      17:41:53,346 WARN  (jgroups-4,Test-NodeD:[]) [StateConsumerImpl] ISPN000284: Problem encountered while installing cluster listener
      java.lang.NullPointerException: null
      	at org.infinispan.notifications.impl.AbstractListenerImpl.canApply(AbstractListenerImpl.java:307) ~[classes/:?]
      	at org.infinispan.notifications.impl.AbstractListenerImpl.validateAndAddFilterListenerInvocations(AbstractListenerImpl.java:271) ~[classes/:?]
      	at org.infinispan.notifications.cachelistener.CacheNotifierImpl.addFilteredListenerInternal(CacheNotifierImpl.java:1330) ~[classes/:?]
      	at org.infinispan.notifications.cachelistener.CacheNotifierImpl.addFilteredListenerAsync(CacheNotifierImpl.java:1293) ~[classes/:?]
      	at org.infinispan.notifications.DataConversionAwareListenable.addFilteredListener(DataConversionAwareListenable.java:26) ~[classes/:?]
      	at org.infinispan.notifications.cachelistener.cluster.ClusterListenerReplicateCallable.accept(ClusterListenerReplicateCallable.java:117) ~[classes/:?]
      	at org.infinispan.statetransfer.StateConsumerImpl.lambda$fetchClusterListeners$6(StateConsumerImpl.java:526) ~[classes/:?]
      

      AbstractCQMultipleCachesTest#testCQCacheLeavesAndJoins was supposed to test that continuous query keeps working after another node joins, but before the ISPN-11435 fix it only started a new cache manager, without starting the indexed cache. Now that all defined caches are started automatically, the test fails if the joiner becomes primary owner of key 5 (the only key that is included in the query results and is updated after the join):

      Test failed: org.infinispan.query.continuous.ContinuousQueryMultipleCachesDistTest.testCQCacheLeavesAndJoins
      java.lang.AssertionError: expected:<6> but was:<5>
      	at org.testng.AssertJUnit.fail(AssertJUnit.java:59)
      	at org.testng.AssertJUnit.failNotEquals(AssertJUnit.java:364)
      	at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:80)
      	at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:245)
      	at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:252)
      	at org.infinispan.query.continuous.AbstractCQMultipleCachesTest.testCQCacheLeavesAndJoins(AbstractCQMultipleCachesTest.java:161)
      

              dberinde@redhat.com Dan Berindei (Inactive)
              dberinde@redhat.com Dan Berindei (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: