{"action":"created","issue":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/8189","repository_url":"https://api.github.com/repos/orientechnologies/orientdb","labels_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/8189/labels{/name}","comments_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/8189/comments","events_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/8189/events","html_url":"https://github.com/orientechnologies/orientdb/issues/8189","id":310852019,"node_id":"MDU6SXNzdWUzMTA4NTIwMTk=","number":8189,"title":"OrientDB 2.2.33 - ORecordDuplicatedException during vertex creation with remote DB","user":{"login":"valenpo","id":1099203,"node_id":"MDQ6VXNlcjEwOTkyMDM=","avatar_url":"https://avatars2.githubusercontent.com/u/1099203?v=4","gravatar_id":"","url":"https://api.github.com/users/valenpo","html_url":"https://github.com/valenpo","followers_url":"https://api.github.com/users/valenpo/followers","following_url":"https://api.github.com/users/valenpo/following{/other_user}","gists_url":"https://api.github.com/users/valenpo/gists{/gist_id}","starred_url":"https://api.github.com/users/valenpo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valenpo/subscriptions","organizations_url":"https://api.github.com/users/valenpo/orgs","repos_url":"https://api.github.com/users/valenpo/repos","events_url":"https://api.github.com/users/valenpo/events{/privacy}","received_events_url":"https://api.github.com/users/valenpo/received_events","type":"User","site_admin":false},"labels":[{"id":197557840,"node_id":"MDU6TGFiZWwxOTc1NTc4NDA=","url":"https://api.github.com/repos/orientechnologies/orientdb/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":{"login":"tglman","id":424369,"node_id":"MDQ6VXNlcjQyNDM2OQ==","avatar_url":"https://avatars0.githubusercontent.com/u/424369?v=4","gravatar_id":"","url":"https://api.github.com/users/tglman","html_url":"https://github.com/tglman","followers_url":"https://api.github.com/users/tglman/followers","following_url":"https://api.github.com/users/tglman/following{/other_user}","gists_url":"https://api.github.com/users/tglman/gists{/gist_id}","starred_url":"https://api.github.com/users/tglman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tglman/subscriptions","organizations_url":"https://api.github.com/users/tglman/orgs","repos_url":"https://api.github.com/users/tglman/repos","events_url":"https://api.github.com/users/tglman/events{/privacy}","received_events_url":"https://api.github.com/users/tglman/received_events","type":"User","site_admin":false},"assignees":[{"login":"tglman","id":424369,"node_id":"MDQ6VXNlcjQyNDM2OQ==","avatar_url":"https://avatars0.githubusercontent.com/u/424369?v=4","gravatar_id":"","url":"https://api.github.com/users/tglman","html_url":"https://github.com/tglman","followers_url":"https://api.github.com/users/tglman/followers","following_url":"https://api.github.com/users/tglman/following{/other_user}","gists_url":"https://api.github.com/users/tglman/gists{/gist_id}","starred_url":"https://api.github.com/users/tglman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tglman/subscriptions","organizations_url":"https://api.github.com/users/tglman/orgs","repos_url":"https://api.github.com/users/tglman/repos","events_url":"https://api.github.com/users/tglman/events{/privacy}","received_events_url":"https://api.github.com/users/tglman/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/orientechnologies/orientdb/milestones/88","html_url":"https://github.com/orientechnologies/orientdb/milestone/88","labels_url":"https://api.github.com/repos/orientechnologies/orientdb/milestones/88/labels","id":1768027,"node_id":"MDk6TWlsZXN0b25lMTc2ODAyNw==","number":88,"title":"2.2.x (next hotfix)","description":"","creator":{"login":"robfrank","id":413587,"node_id":"MDQ6VXNlcjQxMzU4Nw==","avatar_url":"https://avatars3.githubusercontent.com/u/413587?v=4","gravatar_id":"","url":"https://api.github.com/users/robfrank","html_url":"https://github.com/robfrank","followers_url":"https://api.github.com/users/robfrank/followers","following_url":"https://api.github.com/users/robfrank/following{/other_user}","gists_url":"https://api.github.com/users/robfrank/gists{/gist_id}","starred_url":"https://api.github.com/users/robfrank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robfrank/subscriptions","organizations_url":"https://api.github.com/users/robfrank/orgs","repos_url":"https://api.github.com/users/robfrank/repos","events_url":"https://api.github.com/users/robfrank/events{/privacy}","received_events_url":"https://api.github.com/users/robfrank/received_events","type":"User","site_admin":false},"open_issues":142,"closed_issues":0,"state":"open","created_at":"2016-05-16T08:28:14Z","updated_at":"2018-06-05T15:04:29Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2018-04-03T14:06:56Z","updated_at":"2018-06-14T08:15:47Z","closed_at":null,"author_association":"NONE","body":"### OrientDB Version: 2.2.33  \r\n### Java Version: Java(TM) SE Runtime Environment (build 1.8.0_144-b01)  \r\n### OS: OSX\r\n\r\n## Expected behavior  \r\nAdding vertexes should be complete fine. But working only for embedded and memory DB's. \r\n\r\n## Actual behavior  \r\nORecordDuplicatedException during vertex creation with remote: DB\r\n```\r\ncom.orientechnologies.orient.core.storage.ORecordDuplicatedException: Cannot index record User: found duplicated key 'null' in index 'testIndex' previously assigned to the record #25:0\r\n\tDB name=\"tinkerpop\"\r\n\tDB name=\"tinkerpop\"\r\n INDEX=testIndex RID=#25:0\r\n\tat sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)\r\n\tat sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)\r\n\tat java.lang.reflect.Constructor.newInstance(Constructor.java:423)\r\n\tat com.orientechnologies.orient.client.binary.OChannelBinaryAsynchClient.throwSerializedException(OChannelBinaryAsynchClient.java:449)\r\n\tat com.orientechnologies.orient.client.binary.OChannelBinaryAsynchClient.handleStatus(OChannelBinaryAsynchClient.java:400)\r\n\tat com.orientechnologies.orient.client.binary.OChannelBinaryAsynchClient.beginResponse(OChannelBinaryAsynchClient.java:283)\r\n\tat com.orientechnologies.orient.client.binary.OChannelBinaryAsynchClient.beginResponse(OChannelBinaryAsynchClient.java:167)\r\n\tat com.orientechnologies.orient.client.remote.OStorageRemote.beginResponse(OStorageRemote.java:2347)\r\n\tat com.orientechnologies.orient.client.remote.OStorageRemote$6.execute(OStorageRemote.java:576)\r\n\tat com.orientechnologies.orient.client.remote.OStorageRemote$6.execute(OStorageRemote.java:570)\r\n\tat com.orientechnologies.orient.client.remote.OStorageRemote$1.execute(OStorageRemote.java:168)\r\n\tat com.orientechnologies.orient.client.remote.OStorageRemote.baseNetworkOperation(OStorageRemote.java:245)\r\n\tat com.orientechnologies.orient.client.remote.OStorageRemote.asyncNetworkOperation(OStorageRemote.java:160)\r\n\tat com.orientechnologies.orient.client.remote.OStorageRemote.createRecord(OStorageRemote.java:556)\r\n\tat com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.executeSaveRecord(ODatabaseDocumentTx.java:2216)\r\n\tat com.orientechnologies.orient.core.tx.OTransactionNoTx.saveNew(OTransactionNoTx.java:241)\r\n\tat com.orientechnologies.orient.core.tx.OTransactionNoTx.saveRecord(OTransactionNoTx.java:171)\r\n\tat com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.save(ODatabaseDocumentTx.java:2775)\r\n\tat com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.save(ODatabaseDocumentTx.java:103)\r\n\tat com.orientechnologies.orient.core.record.impl.ODocument.save(ODocument.java:1805)\r\n\tat com.orientechnologies.orient.core.record.impl.ODocument.save(ODocument.java:1796)\r\n\tat com.tinkerpop.blueprints.impls.orient.OrientElement.save(OrientElement.java:333)\r\n\tat com.tinkerpop.blueprints.impls.orient.OrientElement.save(OrientElement.java:315)\r\n\tat com.tinkerpop.blueprints.impls.orient.OrientBaseGraph.addVertex(OrientBaseGraph.java:520)\r\n\tat com.tinkerpop.blueprints.impls.orient.OrientBaseGraph.addVertex(OrientBaseGraph.java:451)\r\n\tat com.stimulus.archiva.database.blueprints.BluePrintDatabaseTest.testIndexConflict(BluePrintDatabaseTest.java:60)\r\n```\r\n\r\n\r\n## Steps to reproduce  \r\n- start orientdb-community-2.2.33\r\n- run test code.\r\n\r\n```\r\npackage com.stimulus.archiva.database.blueprints;\r\n\r\nimport com.orientechnologies.orient.client.db.ODatabaseHelper;\r\nimport com.orientechnologies.orient.core.index.OIndex;\r\nimport com.orientechnologies.orient.core.metadata.schema.OClass;\r\nimport com.orientechnologies.orient.core.metadata.schema.OType;\r\nimport com.stimulus.archiva.database.ConnectionSettings;\r\nimport com.stimulus.archiva.database.DatabaseMock;\r\nimport com.stimulus.archiva.domain.Application;\r\nimport com.stimulus.archiva.domain.Database;\r\nimport com.stimulus.archiva.domain.database.TreeItem;\r\nimport com.tinkerpop.blueprints.impls.orient.OrientGraph;\r\nimport com.tinkerpop.blueprints.impls.orient.OrientGraphFactory;\r\nimport com.tinkerpop.blueprints.impls.orient.OrientGraphNoTx;\r\nimport com.tinkerpop.blueprints.impls.orient.OrientVertexType;\r\nimport org.junit.Assert;\r\nimport org.junit.FixMethodOrder;\r\nimport org.junit.Ignore;\r\nimport org.junit.Test;\r\nimport org.junit.runners.MethodSorters;\r\n\r\nimport java.io.IOException;\r\n\r\nimport static org.mockito.Mockito.when;\r\n\r\n/**\r\n * Created by Valentin Popov popov@mailarchiva.ru on 27/03/2018.\r\n */\r\n@FixMethodOrder(MethodSorters.NAME_ASCENDING)\r\npublic class BluePrintDatabaseTest {\r\n\r\n    private static final String domain = \"@domain.com\";\r\n\r\n    @Test\r\n    public void testIndexConflict() throws IOException {\r\n        String[] dbURIs = {\"memory:tinkerpop\", \"remote:localhost/tinkerpop\"};\r\n\r\n        for (String dbURI : dbURIs) {\r\n            if (dbURI.startsWith(\"remote\")) {\r\n                System.setProperty(\"ORIENTDB_ROOT_PASSWORD\", \"admin\");\r\n                ODatabaseHelper.createDatabase(null, dbURI);\r\n            }\r\n\r\n            OrientGraphFactory factory = new OrientGraphFactory(dbURI);\r\n            OrientGraphNoTx tx = factory.getNoTx();\r\n            try {\r\n                String name = \"User\";\r\n                OrientVertexType v = tx.createVertexType(name, \"V\");\r\n                v.createProperty(\"someField\", OType.STRING);\r\n                OIndex<?> index = v.createIndex(\"testIndex\", OClass.INDEX_TYPE.UNIQUE, \"someField\");\r\n                index.getDefinition().setNullValuesIgnored(true);\r\n            } finally {\r\n                tx.shutdown();\r\n            }\r\n\r\n            // Add initial vertex\r\n            OrientGraphNoTx noTx = factory.getNoTx();\r\n            try {\r\n                noTx.addVertex(\"class:User\");\r\n                noTx.addVertex(\"class:User\");\r\n            } finally {\r\n                noTx.shutdown();\r\n            }\r\n\r\n            System.out.println(\"success \" + dbURI); factory.close();\r\n\r\n        }\r\n    }\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/comments/397211085","html_url":"https://github.com/orientechnologies/orientdb/issues/8189#issuecomment-397211085","issue_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/8189","id":397211085,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NzIxMTA4NQ==","user":{"login":"valenpo","id":1099203,"node_id":"MDQ6VXNlcjEwOTkyMDM=","avatar_url":"https://avatars2.githubusercontent.com/u/1099203?v=4","gravatar_id":"","url":"https://api.github.com/users/valenpo","html_url":"https://github.com/valenpo","followers_url":"https://api.github.com/users/valenpo/followers","following_url":"https://api.github.com/users/valenpo/following{/other_user}","gists_url":"https://api.github.com/users/valenpo/gists{/gist_id}","starred_url":"https://api.github.com/users/valenpo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valenpo/subscriptions","organizations_url":"https://api.github.com/users/valenpo/orgs","repos_url":"https://api.github.com/users/valenpo/repos","events_url":"https://api.github.com/users/valenpo/events{/privacy}","received_events_url":"https://api.github.com/users/valenpo/received_events","type":"User","site_admin":false},"created_at":"2018-06-14T08:15:47Z","updated_at":"2018-06-14T08:15:47Z","author_association":"NONE","body":"any news about bug fix?"}}
{"actor":{"display_login":"valenpo"}}