[CDO] Unmonitored fail-over example [message #954950] |
Tue, 23 October 2012 11:38 |
Tino Milschewski Messages: 16 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 07:56] Report message to a moderator
|
|
|
|
|
Re: [CDO] Unmonitored fail-over example [message #977916 is a reply to message #977857] |
Fri, 09 November 2012 17:34 |
|
Hi Tino,
This week I've been working on the offline/failover modes and I've fixed quite some issues. Most of them are already
committed to 4.2, there's one thing I'm still working on. Maybe your specific problem is already solved. When I'm done
I'll publish the new RCP examples applications for offline/failover. Please bear with me...
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Am 09.11.2012 17:37, schrieb Tino Milschewski:
> Hi Eike,
>
> I am using the monitored fail-over example now and it works fine so far. But I recognized an issue. I perform the
> following steps:
>
> 1.) Deleting both repos in the '_database' folder
> 2.) Starting the monitor
> 3.) Starting agent1 and committing a customer
> 4.) Starting agent2
>
> Then agent2 shows the following errors:
> Connecting to network...
> Type changed to BACKUP
> Connected
> State changed to OFFLINE
> [INFO] Connected to master.
> State changed to SYNCING
> [WARN] Replication attempt failed. Retrying in 3 seconds...
> org.eclipse.net4j.db.DBException: org.h2.jdbc.JdbcSQLException: Tabelle SUPPLIER nicht gefunden
> Table SUPPLIER not found; SQL statement:
>
> Cheers,
> Tino
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
|
|
|
Re: [CDO] Unmonitored fail-over example [message #990221 is a reply to message #986443] |
Tue, 11 December 2012 13:28 |
Tino Milschewski Messages: 16 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 14:29] Report message to a moderator
|
|
|
|
|
|
|
|
|
Re: [CDO] Unmonitored fail-over example [message #1005485 is a reply to message #1005473] |
Fri, 25 January 2013 15:57 |
|
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
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
|
Powered by
FUDForum. Page generated in 0.05331 seconds