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

Not working RemoteManager.getBulk() and keySet() in compatibility mode

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 6.0.0.Final
    • 6.0.0.Final
    • Remote Protocols
    • None

      When using HotRod client in compatibility mode, when trying to put entries via embedded cache and afterwards call RemoteCache.getBulk() or RemoteCache.keySet(), an exception is thrown. Exception is thrown in all cache modes (LOCAL, REPL, DIST).

      org.infinispan.client.hotrod.exceptions.HotRodClientException:Request for message id[3] returned server error (status=0x85): java.lang.ClassCastException: java.lang.Integer cannot be cast to [B
      	at org.infinispan.client.hotrod.impl.protocol.Codec10.checkForErrorsInResponseStatus(Codec10.java:143)
      	at org.infinispan.client.hotrod.impl.protocol.Codec10.readHeader(Codec10.java:99)
      	at org.infinispan.client.hotrod.impl.operations.HotRodOperation.readHeaderAndValidate(HotRodOperation.java:56)
      ...
      

      Code that did it:

      EmbeddedHotRodBulkTest.java
      public void testEmbeddedPutHotRodGetBulk() {
            Cache<Integer, Integer> embedded = cacheFactory.getEmbeddedCache();
            RemoteCache<Integer, Integer> remote = cacheFactory.getHotRodCache();
      
            populateCacheManager(embedded);
      
            Map<Integer, Integer> get = remote.getBulk();
            assertEquals(100, get.size());
      
            for(int i = 0; i < 100; i++) {
               assertTrue(get.containsValue(i));
               assertTrue(get.containsKey(i));
            }
         }
      

              rh-ee-galder Galder Zamarreño
              jholusa Jiří Holuša (Inactive)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: