Uploaded image for project: 'JBoss Cache'
  1. JBoss Cache
  2. JBCACHE-1111

PojoCache does not work with BuddyReplication and autoDataGravitation=false

    Details

      Description

      When buddy replication is enabled and autoDataGravitation=false, PojoCache does not work. Setting autoDataGravitation=false is the only realistic mode for a BR-enabled app, so this basically means BR doesn't work with PojoCache. The BR-enabled FIELD granularity session repl tests in AS trunk all fail because of this.

      The problem is basically that when PojoCache traverses a PojoReference to find the actual pojo in JBossInternal, it doesn't add a setForceDataGravitation=true Option before making the invocation. As a result, the node with the actual pojo is not gravitated.

      If you look at o.j.c.p.impl.InternalHelper.get(Fqn fqn, Object key, boolean gravitate), that's where the required Option would be set. But if you search for calls that pass 'true' as the 'gravitate' param, you find that they all lead to unused methods. In the 1.4 branch, those methods are used. Seems this got broken in HEAD.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                jason.greene Jason Greene
                Reporter:
                brian.stansberry Brian Stansberry
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: