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

getAllCacheEntries with byte[] throws ClassCastException

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 9.0.1.Final, 9.1.0.Final
    • 9.0.0.Final
    • Core
    • None

    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);
               }
            }
         }
      

      Attachments

        Activity

          People

            rvansa1@redhat.com Radim Vansa (Inactive)
            rvansa1@redhat.com Radim Vansa (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: