Hi,
finally it works with 1.7 RC2. I've manually set the ORIENTDB_HOME inside 
the dserver.bat (set ORIENTDB_HOME=C:/.......)  Is there another way to set 
it to the current dir? I've read sth about setting it with "java 
-DORIENTDB_HOME=." but that didn't work for me.

Now I've got some new problems: I have two servers that are running. When I 
modify an entry, the modification is successfully replicated to the other 
machine.
Then I softly shutdown Server2 (offline-scenario) and modify entries on 
Server 1. When I restart Server 2 I could see that there is one message in 
the queue but the entries on Server 2 are not updated (I think that this 
message is not processed). If I modify the same entry on Server 2 that is 
"out of date" the following log entry appears: "detected possibly split 
brain network where 2 groups of servers A[Server1] and B[Server2] have 
different contents. Cannot decide who is the winner even if the quorum (1) 
has been reached." I configured it with "writeQuorum = 1" for asynchronous 
replication. Moreover in web console I get the message: 
"...orient.core.exception.OConcurrentModificationException: Cannot UPDATE 
the record #10:2 because the version is not the latest. Probably you are 
updating an old record or it has been modified by another user (db=v6 your 
v8)". So the system really knows which versions of the entry exist but they 
are not synchronized / not merged???

The two servers stay "out of date" as long as the Server2 that was 
restarted gets a newer "version" of the modified entry than on Server1 that 
was always running. After that the modifications are correctly replicated 
and the Servers are always up-to-date. For example:
  
Start Server1 + Start Server2: entry version=0 on both machines.
Modification on Server1: version=1; replicated to Server2; both machines in 
sync with version=1

Server1 is still running
shutdown Server2; Modify entry on Server1: version=2;
restart Server2: equal version as before the shutdown: version= 1
Modify entry on Server2: messages appear as described: version=2
Server1 still has version=2 but with different values than on Server1;
Modify entry on Server2: version=3; -> replicated to Server1: version=3; 
both machines stay in sync.

How do I have to configure the system? I would like to use OrientDB in the 
described "Offline-scenario". My system should work locally and store 
entries in a local running OrientDB. If a network connection is 
established, all the data of the local OrientDB should be replicated to a 
central Server with OrientDB running on it (even if there are many modified 
entries). Do I have to configure two separate cluster groups or could I use 
the standard configuration? Do I have to change the Hazelcast merge policy 
in Hazelcast.xml? Is that scenario possible with OrientDB? Do I have to 
change the dserver.config or the db-config.json?? Please give me some hints 
and/or configuration files to solve that problem.

Another thing: although my created database is a plocal db, I get the 
messages: "2014-04-18 15:49:18:120 WARN Current implementation of storage 
does not support sbtree collections [ODatabaseRecordAbstract$1]". Why is 
that? I thought those messages won't appear with plocal (but rather with 
local).

Many thanks.

Am Donnerstag, 17. April 2014 14:30:42 UTC+2 schrieb OK:
>
> Hi,
>
> as I've already posted on stackoverflow: 
> http://stackoverflow.com/questions/23132614/<http://stackoverflow.com/questions/23132614/distributed-configuration-problems-with-orientdb-failures-exceptions-and-no-re>,
>  I've got some problems with the distributed configuration.
> I received the following exceptions and failures:
>
> error on installing database TEST_DATABASE in 
> C:\orientdb-community-1.7-rc2/databases/TEST_DATABASE
> -> com.orientechnologies.orient.core.storage.impl.local.OStorageLocal cannot 
> be cast to
> com.orientechnologies.orient.server.distributed.ODistributedStorage
>
> -> 
> com.orientechnologies.orient.server.hazelcast.OHazelcastPlugin.executeOnLocalNode(OHazelcastPlugin.java:644)
>
> -> 
> com.orientechnologies.orient.server.hazelcast.OHazelcastDistributedDatabase.onMessage(OHazelcastDistributedDatabase.java:404)
>
> -> 
> com.orientechnologies.orient.server.hazelcast.OHazelcastDistributedDatabase$1.run(OHazelcastDistributedDatabase.java:282)
>
>
> -> java.lang.Thread.run(Unknown Source)Exception in thread "main"
> com.orientechnologies.orient.server.distributed.ODistributedException:
> No response received from remote nodes for auto-deploy of database
>         at 
> com.orientechnologies.orient.server.hazelcast.OHazelcastPlugin.installNewDatabases(OHazelcastPlugin.java:815)
>         at 
> com.orientechnologies.orient.server.hazelcast.OHazelcastPlugin.startup(OHazelcastPlugin.java:194)
>         at 
> com.orientechnologies.orient.server.OServer.registerPlugins(OServer.java:654)
>         at 
> com.orientechnologies.orient.server.OServer.activate(OServer.java:220)
>         at 
> com.orientechnologies.orient.server.OServerMain.main(OServerMain.java:32)
>
> My TEST_DATABASE was created as plocal. It is a ObjectDatabase.
> I've also tried to manually copy the DB to the other machine. The 
> problem is that when changes are made on one machine, no data is 
> replicated. All configurations are standard configurations, so I haven't
>  changed them.
> Could you please help me?
>
> Thank you very much.
>
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to