1 Reply Latest reply on May 28, 2013 11:29 AM by tomas11

    MergedViewListener in Infinispan

    tomas11 Novice

      Hi

       

      Can somone enlighten me process of merging?

      I have two cacheManagers running in cluster. I have registered Listener on them.

          
         cacheManager.addListener(new MergedViewListener());

       

           @Listener

           public class MergedViewListener {

               @Merged

               public void mergedView(MergeEvent me) {

                   LOGGER.info("View merged received " + me);

                }

          }

       

      Now when I split cluster and after a while connect it back sometimes this listener is runned and sometimes not and it is followed with this messages

       

      2013-05-15 13:04:16,545  WARN [OOB-8,7cdbf321-40a4-4246-8e9b-edcac6087036-36583] (NAKACK.java:687) - 7cdbf321-40a4-4246-8e9b-edcac6087036-36583: dropped message 24 from 7cdbf321-40a4-4246-8e9b-edcac6087035-56281 (sender not in table [7cdbf321-40a4-4246-8e9b-edcac6087036-36583]), view=[7cdbf321-40a4-4246-8e9b-edcac6087036-36583|2] [7cdbf321-40a4-4246-8e9b-edcac6087036-36583]

      2013-05-15 13:04:16,668  WARN [OOB-8,7cdbf321-40a4-4246-8e9b-edcac6087036-36583] (NAKACK.java:687) - 7cdbf321-40a4-4246-8e9b-edcac6087036-36583: dropped message 25 from 7cdbf321-40a4-4246-8e9b-edcac6087035-56281 (sender not in table [7cdbf321-40a4-4246-8e9b-edcac6087036-36583]), view=[7cdbf321-40a4-4246-8e9b-edcac6087036-36583|2] [7cdbf321-40a4-4246-8e9b-edcac6087036-36583]

       

      which I would guess means that merge did not happened.

      What ensures the Merge to be done? JGroups should always ensure that merge should happen?

      When the MergedViewListener is invoked it acctually means that merge was successfull and I can access cacheManager's caches and update them? (To handle update and synchronization after split of cluster occurs)