{"action":"created","issue":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/3691","labels_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/3691/labels{/name}","comments_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/3691/comments","events_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/3691/events","html_url":"https://github.com/orientechnologies/orientdb/issues/3691","id":59741018,"number":3691,"title":"Unable to see asynchronous replication working","user":{"login":"somedeveloper2015","id":11250046,"avatar_url":"https://avatars.githubusercontent.com/u/11250046?v=3","gravatar_id":"","url":"https://api.github.com/users/somedeveloper2015","html_url":"https://github.com/somedeveloper2015","followers_url":"https://api.github.com/users/somedeveloper2015/followers","following_url":"https://api.github.com/users/somedeveloper2015/following{/other_user}","gists_url":"https://api.github.com/users/somedeveloper2015/gists{/gist_id}","starred_url":"https://api.github.com/users/somedeveloper2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/somedeveloper2015/subscriptions","organizations_url":"https://api.github.com/users/somedeveloper2015/orgs","repos_url":"https://api.github.com/users/somedeveloper2015/repos","events_url":"https://api.github.com/users/somedeveloper2015/events{/privacy}","received_events_url":"https://api.github.com/users/somedeveloper2015/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/orientechnologies/orientdb/labels/distributed","name":"distributed","color":"eb6420"},{"url":"https://api.github.com/repos/orientechnologies/orientdb/labels/In%20Progress","name":"In Progress","color":"CCCCCC"}],"state":"open","locked":false,"assignee":{"login":"lvca","id":312606,"avatar_url":"https://avatars.githubusercontent.com/u/312606?v=3","gravatar_id":"","url":"https://api.github.com/users/lvca","html_url":"https://github.com/lvca","followers_url":"https://api.github.com/users/lvca/followers","following_url":"https://api.github.com/users/lvca/following{/other_user}","gists_url":"https://api.github.com/users/lvca/gists{/gist_id}","starred_url":"https://api.github.com/users/lvca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lvca/subscriptions","organizations_url":"https://api.github.com/users/lvca/orgs","repos_url":"https://api.github.com/users/lvca/repos","events_url":"https://api.github.com/users/lvca/events{/privacy}","received_events_url":"https://api.github.com/users/lvca/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/orientechnologies/orientdb/milestones/45","html_url":"https://github.com/orientechnologies/orientdb/milestones/2.0.6","labels_url":"https://api.github.com/repos/orientechnologies/orientdb/milestones/45/labels","id":1019435,"number":45,"title":"2.0.6","description":"","creator":{"login":"lvca","id":312606,"avatar_url":"https://avatars.githubusercontent.com/u/312606?v=3","gravatar_id":"","url":"https://api.github.com/users/lvca","html_url":"https://github.com/lvca","followers_url":"https://api.github.com/users/lvca/followers","following_url":"https://api.github.com/users/lvca/following{/other_user}","gists_url":"https://api.github.com/users/lvca/gists{/gist_id}","starred_url":"https://api.github.com/users/lvca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lvca/subscriptions","organizations_url":"https://api.github.com/users/lvca/orgs","repos_url":"https://api.github.com/users/lvca/repos","events_url":"https://api.github.com/users/lvca/events{/privacy}","received_events_url":"https://api.github.com/users/lvca/received_events","type":"User","site_admin":false},"open_issues":20,"closed_issues":2,"state":"open","created_at":"2015-03-12T21:09:53Z","updated_at":"2015-03-16T23:25:28Z","due_on":"2015-03-23T23:00:00Z","closed_at":null},"comments":5,"created_at":"2015-03-04T02:22:50Z","updated_at":"2015-03-16T23:55:38Z","closed_at":null,"body":"I'm currently using release 2.0.3 and have a distributed setup comprised of 2 nodes where both nodes have the same configuration.\r\n\r\nWhen executionMode in default-distributed-db-config.json is specified as 'asynchronous', vertexes and edges are not being replicated on insertion when using the gremlin console.\r\n\r\nI did not face the same problem however performing inserts using SQL through the OrientDb web browser because it appears to distribute the data synchronously despite the asynchronous setting.\r\n\r\nTo reproduce\r\n1. Create the following classes and properties in non-distributed mode by running server.bat\r\n\r\ncreate class One extends v\r\ncreate class Two extends v\r\ncreate property One.k string\r\ncreate property One.v string\r\ncreate property Two.k string\r\ncreate property Two.v string\r\n\r\n2. Stop the server then copy the database to another server (i.e., to ..\\serverInstall\\databases)\r\n3. Make sure executionMode in default-distributed-db-config.json is set to 'asynchronous'\r\n4. Start up 2 nodes in distributed mode by running dserver.bat from each OrientDb bin folder\r\n5. Launch gremlin.bat (console) and issue the following commands\r\ng = new OrientGraph(\"remote:localhost/Test1\", \"user\", \"password\")\r\ng.addVertex(\"class:One\", \"key\", \"k1\", \"name\", \"name1\")\r\ng.addVertex(\"class:Two\", \"key\", \"k2\", \"name\", \"name2\")\r\ng.commit()\r\n\r\nIf you type g.V, nothing will be printed.  Additionally, if you open the OrientDb web browsers on localhost:2480 and 2481 and execute 'select from v', you will only see results on the 2nd node (port 2481) and not the first (port 2480).\r\n\r\nReplication otherwise works using gremlin when executionMode is set to 'undefined' which should default to synchronous based on OrientDb's documentation.\r\n\r\nIf asynchronous replication works, can you please share a working example?\r\n"},"comment":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/comments/81998681","html_url":"https://github.com/orientechnologies/orientdb/issues/3691#issuecomment-81998681","issue_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/3691","id":81998681,"user":{"login":"lvca","id":312606,"avatar_url":"https://avatars.githubusercontent.com/u/312606?v=3","gravatar_id":"","url":"https://api.github.com/users/lvca","html_url":"https://github.com/lvca","followers_url":"https://api.github.com/users/lvca/followers","following_url":"https://api.github.com/users/lvca/following{/other_user}","gists_url":"https://api.github.com/users/lvca/gists{/gist_id}","starred_url":"https://api.github.com/users/lvca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lvca/subscriptions","organizations_url":"https://api.github.com/users/lvca/orgs","repos_url":"https://api.github.com/users/lvca/repos","events_url":"https://api.github.com/users/lvca/events{/privacy}","received_events_url":"https://api.github.com/users/lvca/received_events","type":"User","site_admin":false},"created_at":"2015-03-16T23:55:38Z","updated_at":"2015-03-16T23:55:38Z","body":"Reproduced"}}