{"action":"created","issue":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/5058","labels_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/5058/labels{/name}","comments_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/5058/comments","events_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/5058/events","html_url":"https://github.com/orientechnologies/orientdb/issues/5058","id":109994882,"number":5058,"title":"UNIQUE_HASH_INDEX not being updated locally in asynchronous replication.","user":{"login":"bmcustodio","id":2365153,"avatar_url":"https://avatars.githubusercontent.com/u/2365153?v=3","gravatar_id":"","url":"https://api.github.com/users/bmcustodio","html_url":"https://github.com/bmcustodio","followers_url":"https://api.github.com/users/bmcustodio/followers","following_url":"https://api.github.com/users/bmcustodio/following{/other_user}","gists_url":"https://api.github.com/users/bmcustodio/gists{/gist_id}","starred_url":"https://api.github.com/users/bmcustodio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmcustodio/subscriptions","organizations_url":"https://api.github.com/users/bmcustodio/orgs","repos_url":"https://api.github.com/users/bmcustodio/repos","events_url":"https://api.github.com/users/bmcustodio/events{/privacy}","received_events_url":"https://api.github.com/users/bmcustodio/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/orientechnologies/orientdb/labels/question","name":"question","color":"cc317c"}],"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/17","html_url":"https://github.com/orientechnologies/orientdb/milestones/2.2","labels_url":"https://api.github.com/repos/orientechnologies/orientdb/milestones/17/labels","id":613160,"number":17,"title":"2.2","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":271,"closed_issues":103,"state":"open","created_at":"2014-03-28T13:17:36Z","updated_at":"2015-11-04T03:37:53Z","due_on":"2015-11-03T23:00:00Z","closed_at":null},"comments":4,"created_at":"2015-10-06T12:10:41Z","updated_at":"2015-11-04T03:40:34Z","closed_at":null,"body":"I have a three-node cluster (let's call the nodes `n1`, `n2` and `n3`) and a graph database set to use `executionMode` equal to `asynchronous`. I have the following schema in-place:\r\n\r\n```\r\nCREATE CLASS Thing EXTENDS V\r\nCREATE PROPERTY Thing.uuid STRING\r\nALTER PROPERTY Thing.uuid MANDATORY TRUE\r\nALTER PROPERTY Thing.uuid NOTNULL TRUE\r\nCREATE INDEX Thing.uuid UNIQUE_HASH_INDEX\r\n```\r\n\r\nNow, I issue the following to `n1` (using the console, but the same thing happens with the Java Graph API):\r\n\r\n```\r\nCREATE VERTEX Thing SET uuid = '2113de93-604a-4b98-a071-fec7a025f884'\r\n```\r\n\r\nIf I `SELECT FROM Thing` now, all three nodes now report the existence of a `Thing` record with `uuid` equal to `2113de93-604a-4b98-a071-fec7a025f884` (as expected). However,\r\n\r\n```\r\nSELECT FROM INDEX:Thing.uuid WHERE key = '2113de93-604a-4b98-a071-fec7a025f884'\r\n```\r\n\r\nonly returns the expected result in `n2` and `n3`. `n1` (the target node when writing) reports `0 item(s) found.`. The same thing happens on `n2` or `n3` if the `CREATE VERTEX` is issued to any of these nodes. It does not happen if `executionMode` is set to `undefined` or `synchronous`."},"comment":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/comments/153562044","html_url":"https://github.com/orientechnologies/orientdb/issues/5058#issuecomment-153562044","issue_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/5058","id":153562044,"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-11-04T03:40:34Z","updated_at":"2015-11-04T03:40:34Z","body":"Please could you try 2.1.5?"}}