Hi Melvin,
I'm seeing the same behavior on version 2.1.2 running on 2 servers on
distributed mode. Did you manage to solve it?
Thanks
On Friday, April 10, 2015 at 5:28:03 AM UTC+2, Melvin Yam wrote:
>
> Continuing from the above, I went on to connect to the second server.
>
> orientdb> connect remote:192.168.1.211/testdb admin admin
>
> Connecting to database [remote:192.168.1.211/testdb] with user
> 'admin'...OK
>
> DISTRIBUTED CONFIGURATION:
> {
> "members": [{
> "id": "10c3a271-492b-4706-87fa-4078e1925bbe",
> "name": "node1428388758654",
> "startedOn": "2015-04-10 10:47:28",
> "listeners": [{"protocol":"ONetworkProtocolBinary","listen":"
> 192.168.1.201:2424"},{"protocol":"ONetworkProtocolHttpDb","listen":"
> 192.168.1.201:2480"}],
> "databases": []
> },{
> "id": "cff32c74-66fa-4da8-8eaa-d52cbb59058c",
> "name": "node1428388761304",
> "startedOn": "2015-04-10 10:46:30",
> "listeners": [{"protocol":"ONetworkProtocolBinary","listen":"
> 192.168.1.211:2424"},{"protocol":"ONetworkProtocolHttpDb","listen":"
> 192.168.1.211:2480"}],
> "databases": []
> }
> ],
> "localName": "_hzInstance_1_orientdb",
> "localId": "cff32c74-66fa-4da8-8eaa-d52cbb59058c"
> }
>
> I can see the documents I inserted when connected to the first server.
>
> orientdb {db=testdb}> select from car
>
> ----+-----+------+--------
> # |@RID |@CLASS|name
> ----+-----+------+--------
> 0 |#18:0|car |Ferarri
> 1 |#18:1|car |Ferarri2
> 2 |#18:2|car |Ferarri3
> ----+-----+------+--------
>
> I insert some more documents.
>
> orientdb {db=testdb}> insert into car content {name:"Toyota"}
>
> Inserted record 'car#19:0{name:Toyota} v1' in 0.187000 sec(s).
>
> orientdb {db=testdb}> insert into car content {name:"Toyota2"}
>
> Inserted record 'car#19:1{name:Toyota2} v1' in 0.032000 sec(s).
>
> orientdb {db=testdb}> insert into car content {name:"Toyota3"}
>
> Inserted record 'car#19:2{name:Toyota3} v1' in 0.015000 sec(s).
>
> Now the documents are always inserted into cluster #19.
>
> When I query class car again, I can see documents inserted from both
> servers.
>
> orientdb {db=testdb}> info class car
>
> Class................: car
> Default cluster......: car (id=18)
> Supported cluster ids: [18, 19, 20]
> Cluster selection....: balanced
> orientdb {db=testdb}> select from car
>
> ----+-----+------+--------
> # |@RID |@CLASS|name
> ----+-----+------+--------
> 0 |#18:0|car |Ferarri
> 1 |#18:1|car |Ferarri2
> 2 |#18:2|car |Ferarri3
> 3 |#19:0|car |Toyota
> 4 |#19:1|car |Toyota2
> 5 |#19:2|car |Toyota3
> ----+-----+------+--------
>
> 6 item(s) found. Query executed in 0.0 sec(s).
>
> Regards,
> Melvin Yam
>
--
---
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.