{"action":"created","issue":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/6598","repository_url":"https://api.github.com/repos/orientechnologies/orientdb","labels_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/6598/labels{/name}","comments_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/6598/comments","events_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/6598/events","html_url":"https://github.com/orientechnologies/orientdb/issues/6598","id":172698618,"number":6598,"title":"tons of logs \"Socket closed\" for each REST-API client program that terminates","user":{"login":"rdelangh","id":15123823,"avatar_url":"https://avatars.githubusercontent.com/u/15123823?v=3","gravatar_id":"","url":"https://api.github.com/users/rdelangh","html_url":"https://github.com/rdelangh","followers_url":"https://api.github.com/users/rdelangh/followers","following_url":"https://api.github.com/users/rdelangh/following{/other_user}","gists_url":"https://api.github.com/users/rdelangh/gists{/gist_id}","starred_url":"https://api.github.com/users/rdelangh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rdelangh/subscriptions","organizations_url":"https://api.github.com/users/rdelangh/orgs","repos_url":"https://api.github.com/users/rdelangh/repos","events_url":"https://api.github.com/users/rdelangh/events{/privacy}","received_events_url":"https://api.github.com/users/rdelangh/received_events","type":"User","site_admin":false},"labels":[],"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},"assignees":[{"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":6,"created_at":"2016-08-23T13:27:19Z","updated_at":"2016-09-06T09:15:03Z","closed_at":null,"body":"## OrientDB Version, operating system, or hardware.\r\n- v2.2.5\r\n\r\n## Operating System\r\n- [x] Linux\r\n\r\n## Expected behavior and actual behavior\r\n\r\nWe spawn a many client programs about every some seconds, loading files with data-records into the ODB server, via the REST-API.\r\nIt seems that each time a client program terminates, the server adds a log entry as follows:\r\n\r\n...\r\n2016-08-23 15:17:04:675 SEVER Internal server error:\r\njava.net.SocketException: Socket closed [ONetworkProtocolHttpDb]\r\n2016-08-23 15:17:05:907 SEVER Internal server error:\r\njava.net.SocketException: Socket closed [ONetworkProtocolHttpDb]\r\n2016-08-23 15:17:07:119 SEVER Internal server error:\r\njava.net.SocketException: Socket closed [ONetworkProtocolHttpDb]\r\n...\r\n\r\nMy questions:\r\n- a REST-API is using HTTP connections, each of which is supposed to be state-less ; I think it is setting up a socket, then sends the data over that socket, and would close this socket when the program terminates. As expected. So why is the server complaining with such logs ?\r\n- the documentation of ODB might contain some more information about the different log messages that can be spawned by the server, so that we can understand the situations that might led to those logs\r\n"},"comment":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/comments/244894902","html_url":"https://github.com/orientechnologies/orientdb/issues/6598#issuecomment-244894902","issue_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/6598","id":244894902,"user":{"login":"rdelangh","id":15123823,"avatar_url":"https://avatars.githubusercontent.com/u/15123823?v=3","gravatar_id":"","url":"https://api.github.com/users/rdelangh","html_url":"https://github.com/rdelangh","followers_url":"https://api.github.com/users/rdelangh/followers","following_url":"https://api.github.com/users/rdelangh/following{/other_user}","gists_url":"https://api.github.com/users/rdelangh/gists{/gist_id}","starred_url":"https://api.github.com/users/rdelangh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rdelangh/subscriptions","organizations_url":"https://api.github.com/users/rdelangh/orgs","repos_url":"https://api.github.com/users/rdelangh/repos","events_url":"https://api.github.com/users/rdelangh/events{/privacy}","received_events_url":"https://api.github.com/users/rdelangh/received_events","type":"User","site_admin":false},"created_at":"2016-09-06T09:15:03Z","updated_at":"2016-09-06T09:15:03Z","body":"Our programs are historically written in Perl, so to reduce porting needs to a minimum we are now connecting from these same Perl programs to the OrientDB via a CPAN module \"REST::Client\", which in turn makes use of LWP module for the HTTP(s) connections.\r\n\r\nEach bulk transaction with INSERTs (packed in a JSON structure) that I want to send to OrientDB, is sent with a new HTTP connection (I guess), just like CURL would do.\r\n\r\nTo help me understand why/how this REST::Client module of Perl would (or not) misbehave, can you please elaborate more about the conditions in which OrientDB REST API would spawn such log messages \r\n\r\n2016-09-06 11:14:49:956 SEVER Internal server error:\r\njava.net.SocketException: Socket closed [ONetworkProtocolHttpDb]\r\n"}}
{"actor":{"display_login":"rdelangh"}}