{"action":"closed","issue":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/4069","labels_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/4069/labels{/name}","comments_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/4069/comments","events_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/4069/events","html_url":"https://github.com/orientechnologies/orientdb/issues/4069","id":72893531,"number":4069,"title":"ClassCastException creating ORecordBytes field in distributed mode","user":{"login":"phleemac","id":11630200,"avatar_url":"https://avatars.githubusercontent.com/u/11630200?v=3","gravatar_id":"","url":"https://api.github.com/users/phleemac","html_url":"https://github.com/phleemac","followers_url":"https://api.github.com/users/phleemac/followers","following_url":"https://api.github.com/users/phleemac/following{/other_user}","gists_url":"https://api.github.com/users/phleemac/gists{/gist_id}","starred_url":"https://api.github.com/users/phleemac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phleemac/subscriptions","organizations_url":"https://api.github.com/users/phleemac/orgs","repos_url":"https://api.github.com/users/phleemac/repos","events_url":"https://api.github.com/users/phleemac/events{/privacy}","received_events_url":"https://api.github.com/users/phleemac/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-05-04T01:17:37Z","updated_at":"2015-09-22T07:49:38Z","closed_at":"2015-09-22T07:49:38Z","body":"I use ORecordBytes (http://orientdb.com/docs/last/Binary-Data.html \"Store it with ORecordBytes\" approach\") to store image using GraphAPI.  There is no problem when running single node (start with bin/server.sh).   But it fails when run on 2 nodes in distribute mode, with exception:\r\n\r\n```\r\n2015-05-04 00:37:26:911 WARNING [dev-db-01] detected 1 node(s) in timeout or in conflict and quorum (2) has not been reached, rolling back changes for request (id=148 from=dev-\r\ndb-01 task=tx userName=admin) [ODistributedResponseManager]\r\n2015-05-04 00:37:26:911 WARNING [dev-db-01] Quorum 2 not reached for request (id=148 from=dev-db-01 task=tx userName=admin). Timeout=22ms Servers in timeout/conflict are:\r\n - dev-db-02: java.lang.ClassCastException: com.orientechnologies.orient.core.record.impl.ORecordBytes cannot be cast to com.orientechnologies.orient.core.record.impl.ODocument\r\nReceived: {dev-db-02=java.lang.ClassCastException: com.orientechnologies.orient.core.record.impl.ORecordBytes cannot be cast to com.orientechnologies.orient.core.record.impl.OD\r\nocument, dev-db-01=java.lang.ClassCastException: com.orientechnologies.orient.core.record.impl.ORecordBytes cannot be cast to com.orientechnologies.orient.core.record.impl.ODocument} [ODistributedResponseManager]\r\n2015-05-04 00:37:26:911 WARNING [dev-db-01] sending undo message for request (id=148 from=dev-db-01 task=tx userName=admin) to server dev-db-02 [ODistributedResponseManager]\r\n2015-05-04 00:37:26:914 WARNING [dev-db-01] sending undo message for request (id=148 from=dev-db-01 task=tx userName=admin) to server dev-db-01 [ODistributedResponseManager]Sent run-time exception to the client /10.240.218.43:47281: com.orientechnologies.orient.server.distributed.ODistributedException: Error on executing distributed request (id=148 from=dev-db-01 task=tx userName=admin) against database 'massope_dev.[default, taglist_dev-db-01]' to nodes [dev-db-02, dev-db-01]\r\ncom.orientechnologies.orient.server.distributed.ODistributedException: Error on executing distributed request (id=148 from=dev-db-01 task=tx userName=admin) against database 'massope_dev.[default, taglist_dev-db-01]' to nodes [dev-db-02, dev-db-01]\r\n        at com.orientechnologies.orient.server.hazelcast.OHazelcastDistributedDatabase.send2Nodes(OHazelcastDistributedDatabase.java:194)\r\n        at com.orientechnologies.orient.server.hazelcast.OHazelcastPlugin.sendRequest(OHazelcastPlugin.java:365)\r\n        at com.orientechnologies.orient.server.distributed.ODistributedStorage.commit(ODistributedStorage.java:902)\r\n        at com.orientechnologies.orient.core.tx.OTransactionOptimistic.doCommit(OTransactionOptimistic.java:483)\r\n        at com.orientechnologies.orient.core.tx.OTransactionOptimistic.commit(OTransactionOptimistic.java:147)\r\n        at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.commit(ODatabaseDocumentTx.java:2406)\r\n        at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.commit(ODatabaseDocumentTx.java:2376)\r\n        at com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.commit(ONetworkProtocolBinary.java:1082)\r\n        at com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.executeRequest(ONetworkProtocolBinary.java:384)\r\n        at com.orientechnologies.orient.server.network.protocol.binary.OBinaryNetworkProtocolAbstract.execute(OBinaryNetworkProtocolAbstract.java:217)\r\n        at com.orientechnologies.common.thread.OSoftThread.run(OSoftThread.java:69)\r\nCaused by: com.orientechnologies.orient.server.distributed.ODistributedException: Quorum 2 not reached for request (id=148 from=dev-db-01 task=tx userName=admin). Timeout=22ms Servers in timeout/conflict are:\r\n - dev-db-02: java.lang.ClassCastException: com.orientechnologies.orient.core.record.impl.ORecordBytes cannot be cast to com.orientechnologies.orient.core.record.impl.ODocument\r\nReceived: {dev-db-02=java.lang.ClassCastException: com.orientechnologies.orient.core.record.impl.ORecordBytes cannot be cast to com.orientechnologies.orient.core.record.impl.ODocument, dev-db-01=java.lang.ClassCastException: com.orientechnologies.orient.core.record.impl.ORecordBytes cannot be cast to com.orientechnologies.orient.core.record.impl.ODocument}\r\n        at com.orientechnologies.orient.server.distributed.ODistributedResponseManager.manageConflicts(ODistributedResponseManager.java:576)\r\n        at com.orientechnologies.orient.server.distributed.ODistributedResponseManager.getFinalResponse(ODistributedResponseManager.java:340)\r\n        at com.orientechnologies.orient.server.hazelcast.OHazelcastDistributedDatabase.waitForResponse(OHazelcastDistributedDatabase.java:364)\r\n        at com.orientechnologies.orient.server.hazelcast.OHazelcastDistributedDatabase.send2Nodes(OHazelcastDistributedDatabase.java:191)\r\n        ... 10 more\r\n\r\n```\r\n \r\nI'm using version `2.0.8`"}}