I see the same problem on orientdb community 2.1.0.

On Tuesday, August 4, 2015 at 12:41:43 PM UTC-7, Mike Koh wrote:
>
> Perhaps there is a subtle difference in what we're doing.  Below is the 
> order of what I'm doing. Let me know if there is something you are doing 
> differently.
>
> 2 instances, ubuntu 14.04
>
> - On both, install ubuntu 14.04, install Oracle Java 1.8.0_51 64bit
>
> - On both, extract orientdb-community-2.1-rc6.tar.gz (which includes 
> GratefulDeadConcerts db).
>
> - On both, modify hazelcast.xml as shown in your example (i.e. 2 manually 
> specified ips)
>
> - On both, modify default-distributed-db-config.json to be similar to the 
> example in the github ticket 
> https://github.com/orientechnologies/orientdb/issues/3772
>
> {
>     "autoDeploy": true,
>     "hotAlignment": false,
>     "offlineMsgQueueSize" : 0,
>     "readQuorum": 1,
>     "writeQuorum": 2,
>     "failureAvailableNodesLessQuorum": false,
>     "readYourWrites": true,
>     "servers": {
>       "testnode1" : "master",
>       "*": "replica"
>      },
>     "clusters": {
>         "internal": {
>         },
>         "index": {
>         },
>         "*": {
>             "servers" : [ "<NEW_NODE>" ]
>         }
>     }
> }
>
> - On first instance, cd /opt/orientdb-community-2.1-rc6/bin . Then, 
> ./dserver.sh . specify a root password. Interactively set nodename to 
> "testnode1".  
> /opt/orientdb-community-2.1-rc6/databases/GratefulDeadConcerts/distributed-config.json
>  
> updates to new settings and 
> INFO  [testnode1] received updated status 
> testnode1.GratefulDeadConcerts=ONLINE [OHazelcastPlugin]
>
> - On second instance, cd /opt/orientdb-community-2.1-rc6/bin . Then, 
> ./dserver.sh . specify a root password. Interactively set nodename to 
> "testnode2".
>
> testnode1 creates backup of GratefulDeadConcerts and sends it to 
> testnode2. testnode2 installs it, and then I get the exception
>
> [testnode2] Publishing online status for database 
> testnode2.GratefulDeadConcerts... [OHazelcastDistributedDatabase]Exception 
> in thread "main" java.lang.IllegalStateException: Current database instance 
> (com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx@3f3c966c) 
> is not active on current thread (Thread[main,5,main]). Current active 
> database is: 
> com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx@11ee02f8
>     at 
> com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.checkIfActive(ODatabaseDocumentTx.java:3133)
>     at 
> com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.close(ODatabaseDocumentTx.java:1128)
>     at 
> com.orientechnologies.orient.server.hazelcast.OHazelcastPlugin.installDatabaseFromNetwork(OHazelcastPlugin.java:1057)
>     at 
> com.orientechnologies.orient.server.hazelcast.OHazelcastPlugin.installDatabase(OHazelcastPlugin.java:924)
>     at 
> com.orientechnologies.orient.server.hazelcast.OHazelcastPlugin.installNewDatabases(OHazelcastPlugin.java:1337)
>     at 
> com.orientechnologies.orient.server.hazelcast.OHazelcastPlugin.startup(OHazelcastPlugin.java:184)
>     at 
> com.orientechnologies.orient.server.OServer.registerPlugins(OServer.java:964)
>     at 
> com.orientechnologies.orient.server.OServer.activate(OServer.java:333)
>     at 
> com.orientechnologies.orient.server.OServerMain.main(OServerMain.java:41)
>
> These are AWS instances if that makes a difference (don't think it should 
> because we are manually specifying IP).
>
>
>
>
>
> On 8/4/15 3:36 AM, Giulia Brignoli wrote:
>
> Hi. 
>
> I tried to recreate your problem, but it works for me.
> It might be a wrong configuration of your file hazelcast.xml, I've 
> configured that:
>
> ?xml version="1.0" encoding="UTF-8"?>
> <!-- ~ Copyright (c) 2008-2012, Hazel Bilisim Ltd. All Rights Reserved. ~ 
> ~ Licensed under the Apache License, Version 2.0 (the "License"); ~ you 
> may 
> not use this file except in compliance with the License. ~ You may obtain 
> a copy of the License at ~ ~ http://www.apache.org/licenses/LICENSE-2.0 ~ 
> ~ Unless required by applicable law or agreed to in writing, software ~ 
> distributed 
> under the License is distributed on an "AS IS" BASIS, ~ WITHOUT WARRANTIES 
> OR CONDITIONS OF ANY KIND, either express or implied. ~ See the License 
> for 
> the specific language governing permissions and ~ limitations under the 
> License. -->
>
> <hazelcast
> xsi:schemaLocation="http://www.hazelcast.com/schema/config 
> hazelcast-config-3.0.xsd" 
> <http://www.hazelcast.com/schema/confighazelcast-config-3.0.xsd>
> xmlns="http://www.hazelcast.com/schema/config"; 
> <http://www.hazelcast.com/schema/config> xmlns:xsi=
> "http://www.w3.org/2001/XMLSchema-instance"; 
> <http://www.w3.org/2001/XMLSchema-instance>>
> <group>
> <name>orientdb</name>
> <password>orientdb</password>
> </group>
> <network>
>     <port auto-increment="true">2434</port>
>     <join>
>       <multicast enabled="false">
>         <multicast-group>235.1.1.1</multicast-group>
>         <multicast-port>2434</multicast-port>
>       </multicast>
>       <tcp-ip enabled="true">
>         <member>10.0.22.157:2434</member>
>         <member>10.0.22.146:2434</member>
>       </tcp-ip>
>      </join>
>   </network>
>
> <executor-service>
> <pool-size>16</pool-size>
> </executor-service>
> </hazelcast>
>
> Regards,
> Giulia
> -- 
>
> --- 
> 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.
>
>
>

-- 

--- 
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