This discussion is archived
1 Reply Latest reply: Feb 27, 2013 7:46 AM by Hysun RSS

!!! Infinite loop in push-publish active2active pattern example?

Hysun Newbie
Currently Being Moderated
Hi Guru,

I have encountered some problems while playing with the example of push-replication / active2active pattern, and tried to fix them. But there is still one which is now beyond my current knowledge:

Issue 1: (fixed)
After download the latest Incubator example from the official website and run the push-replication / active2active example directly following by the [readme] file, exceptions related to serialization / deserialization occurred. I then added the mockito-all-1.8.5.jar to the Incubator-example’s lib directory and the problem gone.

Issue 2: (fixed)
Running the example, and found that [update events] triggered by the active-server1 can be propagated to active-server2, but not for vice versa (active-server2 -> active-server1). I inspected the cache configuration file of active-server2, and found there should be a typo in it, as:
<event:remote-cluster-channel-scheme>
<event:remote-invocation-service-name>remote-site1</event:remote-invocation-service-name>
….
</event:remote-cluster-channel-scheme>
---------------------------------------------------------------------------
<remote-invocation-scheme>
<service-name>remote-sit1</service-name>
……
</remote-invocation-scheme>

I think this is a typo, so changed the remote-sit1 to remote-site1 and the problem gone as expected.

Issue 3: (pending)
After having the above 2 issues fixed, and re-run the example from scratch, this time I found the program can never end (infinite loop). From the log, I can see the update-count exceeds 5000 (expected value is 2000 which will trigger the program exit) and keep increasing. I spent quite effort trying to get the cause and did some trace work for the source code, but still failed.

Could you please so kind give me some help here?

Thank you in advance!
Hysun He

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points