Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-12578

CAS cache operations (replace(K, V, V), remove(K, V)) don't work with array data type

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.13
    • cache

    Description

      Values are compared using CacheEntryPredicateContainsValue predicate, this predicate call F.eq(thisVal, cacheVal) to compare, which gives false for two instances of arrays with the same content.

      Reproducer:

      IgniteCache<Object, Object> cache = startGrid().getOrCreateCache(DEFAULT_CACHE_NAME);
      Object val = new byte[] {1};
      cache.put(1, val);
      assertTrue(cache.replace(1, val, val));
      

      Attachments

        Issue Links

          Activity

            People

              nizhikov Nikolay Izhikov
              alex_pl Aleksey Plekhanov
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h