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

getAllCacheEntries with byte[] throws ClassCastException

    Details

      Description

      Testcase:

         public void testGetAllCacheEntriesWithBytes() {
            Set<String> keys = new HashSet<>();
            for (int i = 0; i < numEntries; ++i) {
               String key = "key" + i;
               advancedCache(i % numNodes).put(key, new byte[]{(byte) i});
               keys.add(key);
            }
            List<Cache<String, byte[]>> caches = caches();
            for (Cache<String, byte[]> cache : caches) {
               Map<String, CacheEntry<String, byte[]>> map = cache.getAdvancedCache().getAllCacheEntries(keys);
               assertEquals(map.size(), keys.size());
               for (int i = 0; i < numEntries; ++i) {
                  CacheEntry<String, byte[]> entry = map.get("key" + i);
                  assertEquals(entry.getValue().length, 1);
                  assertEquals(entry.getValue()[0], i);
               }
            }
         }
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                rvansa Radim Vansa
                Reporter:
                rvansa Radim Vansa
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: