Uploaded image for project: 'JBoss POJO Cache'
  1. JBoss POJO Cache
  2. PCACHE-49

Changes in Serializable objects are never replicated

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Duplicate Issue
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Cache / Clustering
    • Labels:
      None

      Description

      Assume that we have Serializable object stored in PojoCache. (using putObject() method)
      If you get object from cache (using getObject() method), modify any field (non-transient) in object and store again object under this same node, changes made in obejct would be never replicated to another cache instances in cluster.
      Probably in method TreeCacheAopDelegate._putObject() has incorrect condition:
      if(oldValue == obj) return obj; // value already in cache. return right away.
      If obj was loaded from cache, this condition is always true and changes made in object would never be replicated.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jason.greene Jason Greene
                  Reporter:
                  jacek187 Jacek Halat
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: