3 Replies Latest reply on Oct 24, 2007 12:23 PM by manik

    node modification event

    mratsimbazafy

      Hi,

      I have a problem in processing a data modification in cache. Here is the problem :

      - I have datas shared in the cluster, and we want to do some actions when these datas are modifed.
      - Each cluster node have a listener annotated with @NodeModified
      - I modify a data D in the cluster node A
      - On node modification event

      all other cluster node receive :
      -> when isPre() == true : the original data D
      -> when isPre() == false : the modified data D'

      the cluster node A receive :
      -> when isPre() == true : the modified data D'
      -> when isPre() == false : the modified data D'



      Is it normal? Why we don't have the same behavior ?

      Thanks!!

        • 1. Re: node modification event
          mratsimbazafy

          Nobody can help me?

          To resume, in the cluster each node must process the event from the changes made on the cache.
          So, each node is symetric and must do a specific action on each event.

          The problem is that the node that modify the cache get the event but the predata and the postdata are the same and then the difference is null.

          How can I handle this event in a symetric way? And why the predata and the postdata are the same whereas the changes should be only available after commit, no?

          Regards.

          • 2. Re: node modification event
            manik

            Hi

            Sorry for the late response, this sounds like a bug.

            http://jira.jboss.com/jira/browse/JBCACHE-1205

            • 3. Re: node modification event
              manik

              Sorry, I can't seem to recreate this - how does your situation differ from RemoteCacheListenerTest.testOnlyModification() and RemoteCacheListenerOptimisticTest.testOnlyModification()?

              Do you have a unit test that recreates this problem?