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

Functional commands do not invalidate L1 cache

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 9.1.0.CR1
    • 9.1.0.Alpha1
    • Core
    • None

    Description

      SSIA. Test that fails in DistSyncFuncTest courtesy of karestig@redhat.com:

         public void testEvalFromNonOwner() {
            initAndTest();
            Cache<Object, String> nonOwner = getFirstNonOwner("k1");
      
            FunctionalMapImpl<Object, String> objectStringFunctionalMap = FunctionalMapImpl.create(nonOwner.getAdvancedCache());
            FunctionalMap.ReadWriteMap<Object, String> functionalMap = ReadWriteMapImpl.create(objectStringFunctionalMap);
      
            SerializableFunction<EntryView.ReadWriteEntryView<Object, String>, Void> func = v -> {
               v.set("value2");
               return null;
            };
      
            try {
               functionalMap.eval("k1", func).get();
               assertOnAllCachesAndOwnership("k1", "value2");
            } catch (InterruptedException e) {
               e.printStackTrace();
            } catch (ExecutionException e) {
               e.printStackTrace();
            }
         }
      

      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: