{"action":"created","issue":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/5293","labels_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/5293/labels{/name}","comments_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/5293/comments","events_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/5293/events","html_url":"https://github.com/orientechnologies/orientdb/issues/5293","id":115701032,"number":5293,"title":"Transaction - SET and INCREMENT fails in tx","user":{"login":"StarpTech","id":1764424,"avatar_url":"https://avatars.githubusercontent.com/u/1764424?v=3","gravatar_id":"","url":"https://api.github.com/users/StarpTech","html_url":"https://github.com/StarpTech","followers_url":"https://api.github.com/users/StarpTech/followers","following_url":"https://api.github.com/users/StarpTech/following{/other_user}","gists_url":"https://api.github.com/users/StarpTech/gists{/gist_id}","starred_url":"https://api.github.com/users/StarpTech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StarpTech/subscriptions","organizations_url":"https://api.github.com/users/StarpTech/orgs","repos_url":"https://api.github.com/users/StarpTech/repos","events_url":"https://api.github.com/users/StarpTech/events{/privacy}","received_events_url":"https://api.github.com/users/StarpTech/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":"tglman","id":424369,"avatar_url":"https://avatars.githubusercontent.com/u/424369?v=3","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/64","html_url":"https://github.com/orientechnologies/orientdb/milestones/2.1.x%20(next%20hotfix)","labels_url":"https://api.github.com/repos/orientechnologies/orientdb/milestones/64/labels","id":1282180,"number":64,"title":"2.1.x (next hotfix)","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":122,"closed_issues":15,"state":"open","created_at":"2015-08-31T15:18:49Z","updated_at":"2015-11-08T18:27:10Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-11-08T00:04:39Z","updated_at":"2015-11-08T19:36:43Z","closed_at":null,"body":"Works in Studio but fails in orientjs as transaction\r\n\r\n```\r\nbegin\r\nLET t0 = UPDATE #18:7 SET Points = 0\r\ncommit retry 100\r\nreturn [$t0]\r\n```\r\nResult:\r\n```\r\n[ { classId: -2, value: null } ]\r\n```\r\nError message in console:\r\n```\r\n2015-11-08 00:01:32:023 INFO  OrientDB Server v2.1.5 (build 2.1.x@r; 2015-10-29 16:54:25+0000) is active. [OServer]\r\n2015-11-08 00:02:26:872 WARNI {db=test-dev} Cannot serialize record: com.orientechnologies.orient.core.sql.query.OResultSet@1 [ONetworkProtocolBinary]\r\n2015-11-08 00:02:26:873 WARNI {db=test-dev} Cannot serialize record: com.orientechnologies.orient.core.sql.query.OResultSet@1 [ONetworkProtocolBinary]\r\n2015-11-08 00:02:26:946 WARNI {db=test-dev} Cannot serialize record: com.orientechnologies.orient.core.sql.query.OResultSet@1 [ONetworkProtocolBinary]\r\n2015-11-08 00:02:27:017 WARNI {db=test-dev} Cannot serialize record: com.orientechnologies.orient.core.sql.query.OResultSet@1 [ONetworkProtocolBinary]\r\n2015-11-08 00:02:27:049 WARNI {db=test-dev} Cannot serialize record: com.orientechnologies.orient.core.sql.query.OResultSet@1 [ONetworkProtocolBinary]\r\n2015-11-08 00:02:27:050 WARNI {db=test-dev} Cannot serialize record: com.orientechnologies.orient.core.sql.query.OResultSet@1 [ONetworkProtocolBinary]\r\n2015-11-08 00:02:27:092 WARNI {db=test-dev} Cannot serialize record: com.orientechnologies.orient.core.sql.query.OResultSet@1 [ONetworkProtocolBinary]\r\n2015-11-08 00:02:27:093 WARNI {db=test-dev} Cannot serialize record: com.orientechnologies.orient.core.sql.query.OResultSet@1 [ONetworkProtocolBinary]\r\n2015-11-08 00:02:27:196 WARNI {db=test-dev} Cannot serialize record: com.orientechnologies.orient.core.sql.query.OResultSet@1 [ONetworkProtocolBinary]\r\n2015-11-08 00:02:27:310 WARNI {db=test-dev} Cannot serialize record: com.orientechnologies.orient.core.sql.query.OResultSet@1 [ONetworkProtocolBinary]\r\n2015-11-08 00:02:27:337 WARNI {db=test-dev} Cannot serialize record: com.orientechnologies.orient.core.sql.query.OResultSet@1 [ONetworkProtocolBinary]\r\n2015-11-08 00:02:27:345 WARNI {db=test-dev} Cannot serialize record: com.orientechnologies.orient.core.sql.query.OResultSet@1 [ONetworkProtocolBinary]\r\n2015-11-08 00:02:27:371 WARNI {db=test-dev} Cannot serialize record: com.orientechnologies.orient.core.sql.query.OResultSet@1 [ONetworkProtocolBinary]\r\n2015-11-08 00:02:27:372 WARNI {db=test-dev} Cannot serialize record: com.orientechnologies.orient.core.sql.query.OResultSet@1 [ONetworkProtocolBinary]\r\n2015-11-08 00:02:27:383 WARNI {db=test-dev} Cannot serialize record: 1 [ONetworkProtocolBinary]\r\n2015-11-08 00:02:27:390 WARNI {db=test-dev} Cannot serialize record: 1 [ONetworkProtocolBinary]\r\n2015-11-08 00:02:27:397 WARNI {db=test-dev} Cannot serialize record: 1 [ONetworkProtocolBinary]\r\n2015-11-08 00:02:27:401 WARNI {db=test-dev} Cannot serialize record: 1 [ONetworkProtocolBinary]\r\n2015-11-08 00:02:27:407 WARNI {db=test-dev} Cannot serialize record: 1 [ONetworkProtocolBinary]\r\n2015-11-08 00:02:27:412 WARNI {db=test-dev} Cannot serialize record: 1 [ONetworkProtocolBinary]\r\n2015-11-08 00:02:27:418 WARNI {db=test-dev} Cannot serialize record: 1 [ONetworkProtocolBinary]\r\n2015-11-08 00:02:27:430 WARNI {db=test-dev} Cannot serialize record: 1 [ONetworkProtocolBinary]\r\n2015-11-08 00:02:27:436 WARNI {db=test-dev} Cannot serialize record: 1 [ONetworkProtocolBinary]\r\n2015-11-08 00:02:27:440 WARNI {db=test-dev} Cannot serialize record: 1 [ONetworkProtocolBinary]\r\n2015-11-08 00:02:27:445 WARNI {db=test-dev} Cannot serialize record: 1 [ONetworkProtocolBinary]\r\n2015-11-08 00:02:27:453 WARNI {db=test-dev} Cannot serialize record: 1 [ONetworkProtocolBinary]\r\n2015-11-08 00:02:27:459 WARNI {db=test-dev} Cannot serialize record: 1 [ONetworkProtocolBinary]\r\n```\r\n\r\nor another case:\r\n\r\nThis command will be executed but without `RETURN AFTER` it will delivers the same `[ { classId: -2, value: null } ]`\r\n```\r\nUPDATE %s INCREMENT Points= %s RETURN AFTER $current.Points\r\n```"},"comment":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/comments/154860326","html_url":"https://github.com/orientechnologies/orientdb/issues/5293#issuecomment-154860326","issue_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/5293","id":154860326,"user":{"login":"StarpTech","id":1764424,"avatar_url":"https://avatars.githubusercontent.com/u/1764424?v=3","gravatar_id":"","url":"https://api.github.com/users/StarpTech","html_url":"https://github.com/StarpTech","followers_url":"https://api.github.com/users/StarpTech/followers","following_url":"https://api.github.com/users/StarpTech/following{/other_user}","gists_url":"https://api.github.com/users/StarpTech/gists{/gist_id}","starred_url":"https://api.github.com/users/StarpTech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StarpTech/subscriptions","organizations_url":"https://api.github.com/users/StarpTech/orgs","repos_url":"https://api.github.com/users/StarpTech/repos","events_url":"https://api.github.com/users/StarpTech/events{/privacy}","received_events_url":"https://api.github.com/users/StarpTech/received_events","type":"User","site_admin":false},"created_at":"2015-11-08T19:36:43Z","updated_at":"2015-11-08T19:36:43Z","body":"@lvca @tglman  Chance to make a hotfix release?"}}