{"action":"created","issue":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/5407","labels_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/5407/labels{/name}","comments_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/5407/comments","events_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/5407/events","html_url":"https://github.com/orientechnologies/orientdb/issues/5407","id":119728211,"number":5407,"title":"Index information not propagated to schema information on other node in java client","user":{"login":"wouterv","id":616997,"avatar_url":"https://avatars.githubusercontent.com/u/616997?v=3","gravatar_id":"","url":"https://api.github.com/users/wouterv","html_url":"https://github.com/wouterv","followers_url":"https://api.github.com/users/wouterv/followers","following_url":"https://api.github.com/users/wouterv/following{/other_user}","gists_url":"https://api.github.com/users/wouterv/gists{/gist_id}","starred_url":"https://api.github.com/users/wouterv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wouterv/subscriptions","organizations_url":"https://api.github.com/users/wouterv/orgs","repos_url":"https://api.github.com/users/wouterv/repos","events_url":"https://api.github.com/users/wouterv/events{/privacy}","received_events_url":"https://api.github.com/users/wouterv/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/orientechnologies/orientdb/labels/bug","name":"bug","color":"ededed"}],"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":null,"comments":1,"created_at":"2015-12-01T14:30:50Z","updated_at":"2015-12-01T15:31:07Z","closed_at":null,"body":"Reproduction:\n\n- Start a 2 (or 3) node cluster\n- Connect to node 1 and 2 with separate jvm's using the Java API\n- Using node 1 client connection, create an index on a class property\n- Using node 2 call code db.getMetadata().getSchema().getClass(\"classname\").getClassIndex(\"theindexname\").\nThe result will return null.\nRestarting the node 2 client and running it again will fix the problem, the index is found in the class meta data.\n\nWe are currently employing the following workaround to get around this issue (pretty ugly):\n\n```\n                try {\n                    getDb().command(new OCommandSQL(\"select count(*) from `index:\" + indexName + \"`\")).execute();\n                    exists = true;\n                } catch (OCommandExecutionException oee){\n                    exists = false;\n                }\n```"},"comment":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/comments/161002225","html_url":"https://github.com/orientechnologies/orientdb/issues/5407#issuecomment-161002225","issue_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/5407","id":161002225,"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-12-01T15:31:06Z","updated_at":"2015-12-01T15:31:06Z","body":"This is a duplicated of this enhancement https://github.com/orientechnologies/orientdb/issues/3496."}}