{"action":"created","issue":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/4610","labels_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/4610/labels{/name}","comments_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/4610/comments","events_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/4610/events","html_url":"https://github.com/orientechnologies/orientdb/issues/4610","id":96152116,"number":4610,"title":"com.orientechnologies.common.exception.OException: File flush was abnormally terminated","user":{"login":"thiagopm","id":850424,"avatar_url":"https://avatars.githubusercontent.com/u/850424?v=3","gravatar_id":"","url":"https://api.github.com/users/thiagopm","html_url":"https://github.com/thiagopm","followers_url":"https://api.github.com/users/thiagopm/followers","following_url":"https://api.github.com/users/thiagopm/following{/other_user}","gists_url":"https://api.github.com/users/thiagopm/gists{/gist_id}","starred_url":"https://api.github.com/users/thiagopm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thiagopm/subscriptions","organizations_url":"https://api.github.com/users/thiagopm/orgs","repos_url":"https://api.github.com/users/thiagopm/repos","events_url":"https://api.github.com/users/thiagopm/events{/privacy}","received_events_url":"https://api.github.com/users/thiagopm/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/orientechnologies/orientdb/labels/in%20progress","name":"in progress","color":"CCCCCC"},{"url":"https://api.github.com/repos/orientechnologies/orientdb/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-07-20T20:26:57Z","updated_at":"2015-07-21T04:28:40Z","closed_at":null,"body":"Hello,\n\nWe created a function to save a list of an Edge where we send a RID (FeedRID) and a list of users related with this. (5.000 users/request)\n\nAfter some requests, this error below started. Then We should to restore a new database.\n\nDo you know why it could be happened?\n\nError:\n<code>\ncom.orientechnologies.common.exception.OException: File flush was abnormally terminated\njava.util.concurrent.ExecutionException: java.io.IOException: Stream Closed\njava.io.IOException: Stream Closed\n</code>\n\nfunction:\n<code>\nif(feedRID == null)</br>\n{</br>\n\tresponse.send(404, \"Invalid feedRID\", \"text/plain\", \"Error: Invalid feedRID\" );</br>\n}</br>\nelse</br>\n{</br>\n\tvar db = orient.getGraph();</br>\n\t</br>\n    try{</br>\n      \tvar feed = db.getVertex(feedRID);</br>\n      </br>\n      \tvar userArray = userList.split(\",\");</br>\n      </br>\n      \tvar index;</br>\n      \tfor (index = 0; index < userArray.length; ++index) {</br>\n      \t\tvar userId = userArray[index];</br>\n          \t</br>\n          var d = new Date,\n              dformat = [d.getFullYear(),\n               d.getMonth()+1,\n               d.getDate()].join('-')+' '+\n              [d.getHours(),\n               d.getMinutes(),\n               d.getSeconds()].join(':');</br>\n          </br>\n          var feedUser = db.addVertex(\"class:FeedUser\");</br>\n          feedUser.setProperty('FeedId', 0)</br>\n          feedUser.setProperty('FeedUserId', 0)</br>\n          feedUser.setProperty('LastActionDate', dformat)</br>\n          feedUser.setProperty('UserId', userId)</br>\n                              </br>\n        \tdb.addEdge(null, feed, feedUser, \"FeedUserFeed\");</br>\n      \t}</br>\n      \n      \treturn \"Ok1\";</br>\n    }</br>\n  \tcatch ( err ){</br>\n    \tresponse.send(500, \"Error on creating FeedUser\", \"text/plain\", err.toString() );</br>\n    }</br>\n}</br>\n</code>\n\n\nThank You,\nThiago"},"comment":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/comments/123153000","html_url":"https://github.com/orientechnologies/orientdb/issues/4610#issuecomment-123153000","issue_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/4610","id":123153000,"user":{"login":"LucaSon90","id":13216738,"avatar_url":"https://avatars.githubusercontent.com/u/13216738?v=3","gravatar_id":"","url":"https://api.github.com/users/LucaSon90","html_url":"https://github.com/LucaSon90","followers_url":"https://api.github.com/users/LucaSon90/followers","following_url":"https://api.github.com/users/LucaSon90/following{/other_user}","gists_url":"https://api.github.com/users/LucaSon90/gists{/gist_id}","starred_url":"https://api.github.com/users/LucaSon90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LucaSon90/subscriptions","organizations_url":"https://api.github.com/users/LucaSon90/orgs","repos_url":"https://api.github.com/users/LucaSon90/repos","events_url":"https://api.github.com/users/LucaSon90/events{/privacy}","received_events_url":"https://api.github.com/users/LucaSon90/received_events","type":"User","site_admin":false},"created_at":"2015-07-21T04:28:40Z","updated_at":"2015-07-21T04:28:40Z","body":"Hi Thiago, could you tell me which version are you using ?"}}