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

RemoteMultimapCacheAPITest fails with trace logging enabled

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 9.3.0.Final
    • 9.3.0.Final
    • Test Suite
    • None

      Codec20.writeHeader() logs the name of the operation using HotRodConstants.Names.of(op), which in turn uses an array populated with the request/response constants in HotRodConstants. The multimap request/response ops are defined in MultimapHotRodConstants, so they're missing from the array:

      [ERROR] testContainsEntry(org.infinispan.client.hotrod.RemoteMultimapCacheAPITest)  Time elapsed: 0.016 s  <<< FAILURE!
      java.util.concurrent.CompletionException: java.lang.ArrayIndexOutOfBoundsException: 107
      	at java.util.concurrent.CompletableFuture.reportJoin(CompletableFuture.java:375)
      	at java.util.concurrent.CompletableFuture.join(CompletableFuture.java:1934)
      	at org.infinispan.client.hotrod.RemoteMultimapCacheAPITest.testContainsEntry(RemoteMultimapCacheAPITest.java:128)
      Caused by: java.lang.ArrayIndexOutOfBoundsException: 107
      	at org.infinispan.client.hotrod.impl.protocol.HotRodConstants$Names.of(HotRodConstants.java:241)
      	at org.infinispan.client.hotrod.impl.protocol.Codec20.writeHeader(Codec20.java:129)
      	at org.infinispan.client.hotrod.impl.protocol.Codec28.writeHeader(Codec28.java:19)
      	at org.infinispan.client.hotrod.impl.operations.AbstractKeyValueOperation.sendKeyValueOperation(AbstractKeyValueOperation.java:53)
      	at org.infinispan.client.hotrod.impl.multimap.operations.PutKeyValueMultimapOperation.executeOperation(PutKeyValueMultimapOperation.java:43)
      	at org.infinispan.client.hotrod.impl.operations.RetryOnFailureOperation.invoke(RetryOnFailureOperation.java:75)
      	at org.infinispan.client.hotrod.impl.transport.netty.ChannelPool.activateChannel(ChannelPool.java:217)
      	at org.infinispan.client.hotrod.impl.transport.netty.ChannelPool.acquire(ChannelPool.java:86)
      	at org.infinispan.client.hotrod.impl.transport.netty.ChannelFactory.fetchChannelAndInvoke(ChannelFactory.java:258)
      	at org.infinispan.client.hotrod.impl.transport.netty.ChannelFactory.fetchChannelAndInvoke(ChannelFactory.java:296)
      	at org.infinispan.client.hotrod.impl.operations.AbstractKeyOperation.fetchChannelAndInvoke(AbstractKeyOperation.java:39)
      	at org.infinispan.client.hotrod.impl.operations.RetryOnFailureOperation.execute(RetryOnFailureOperation.java:60)
      	at org.infinispan.client.hotrod.impl.multimap.RemoteMultimapCacheImpl.put(RemoteMultimapCacheImpl.java:78)
      	... 24 more
      

              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: