| [CDO] Unmonitored fail-over example [message #954950] |
Tue, 23 October 2012 07:38  |
Tino Milschewski Messages: 14 Registered: February 2012 |
Junior Member |
|
|
Hi,
I just tried to run the unmonitored fail-over example in org.eclipse.cdo.examples.server.FailoverExample (InitialMaster, InitialBackup).
First, I run the InitalMaster main program. I get the following exception Exception in thread "main" org.eclipse.net4j.util.lifecycle.LifecycleException: Could not activate TCPClientConnector[localhost:2.037] . That means the InitialMaster-Repo can not connect to the InitialBackup-Repo. This is because the InitialBackup main program is not running yet and has not created an acceptor. It is the same vice versa.
So, how can I run this example?
Cheers,
Tino
[Updated on: Fri, 26 October 2012 03:56] Report message to a moderator
|
|
|
|
|
|
|
|
|
| Re: [CDO] Unmonitored fail-over example [message #990221 is a reply to message #986443] |
Tue, 11 December 2012 08:28   |
Tino Milschewski Messages: 14 Registered: February 2012 |
Junior Member |
|
|
Hi Eike,
I am still using the monitored fail-over example (4.2-M3 (S20121114-1534)).
I modified the client code: Now the client initially commits 1000 new customers. The database files of the master repository grow in size as expected (to more than 100 MB). But the database files of the backup repository remain at the initial size of 500 KB. Nevertheless, the backup repository seems to cache the data, because it is still available when I shut down the master repo.
Is this the expected behaviour or am I missing something?
Edit: I think the client session caches the objects. So, maybe the synching does not work anymore?
Cheers,
Tino
[Updated on: Tue, 11 December 2012 09:29] Report message to a moderator
|
|
|
|
|
|
|
|
|
| Re: [CDO] Unmonitored fail-over example [message #1005485 is a reply to message #1005473] |
Fri, 25 January 2013 10:57   |
Eike Stepper Messages: 5152 Registered: July 2009 |
Senior Member |
|
|
Am 25.01.2013 16:27, schrieb Tino Milschewski:
> Hi Eike,
>
> currently we are using the bundles directly from the git-repository, instead of 4.2-M3 (S20121002-0801). Now, it works
> in the example and it also seems to work in our application :).
Excellent ;-)
> By the way: In our scenario, it could happen that the monitor fails. After restarting the monitor, it would be nice,
> if the fail-over repos could automatically reconnect to it. What do you think?
Sounds reasonable. If that's currently not the case, please submit an enhancement request. Please note that, without
someone contributing a patch, I see no chance to work on this anytime soon.
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
|
Powered by
FUDForum. Page generated in 0.02036 seconds