Details

    • Type: Bug
    • Status: Verified (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: JDG 7.0.0 GA
    • Fix Version/s: JDG 7.0.1
    • Component/s: Library
    • Labels:
      None
    • Target Release:
    • Fix Build:
      DR3
    • Steps to Reproduce:
      Hide
        public void testConditionalRemoveWithStoreAsBinary() {
            ConfigurationBuilder c = new ConfigurationBuilder();
            c.storeAsBinary().enable().storeKeysAsBinary(true).storeValuesAsBinary(true).build();
            ecm = TestCacheManagerFactory.createCacheManager(c);
            Cache<Object, Object> cache = ecm.getCache();
            cache.put(key, value);
            cache.remove(key, value);
            assert cache.get(key) == null;
         }
      
      Show
      public void testConditionalRemoveWithStoreAsBinary() { ConfigurationBuilder c = new ConfigurationBuilder(); c.storeAsBinary().enable().storeKeysAsBinary( true ).storeValuesAsBinary( true ).build(); ecm = TestCacheManagerFactory.createCacheManager(c); Cache< Object , Object > cache = ecm.getCache(); cache.put(key, value); cache.remove(key, value); assert cache.get(key) == null ; }

      Description

      See attached reproducer. The conditional RemoveCommand fails since the stored value is a MarshalledValue and doesn't match the passed in unmarshalled value.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  gustavonalle Gustavo Fernandes
                  Reporter:
                  gustavonalle Gustavo Fernandes
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: