{"action":"opened","issue":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/8158","repository_url":"https://api.github.com/repos/orientechnologies/orientdb","labels_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/8158/labels{/name}","comments_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/8158/comments","events_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/8158/events","html_url":"https://github.com/orientechnologies/orientdb/issues/8158","id":305107116,"number":8158,"title":"orientdb process keeps database files open even after DISCONNECT","user":{"login":"karel-un","id":17616100,"avatar_url":"https://avatars3.githubusercontent.com/u/17616100?v=4","gravatar_id":"","url":"https://api.github.com/users/karel-un","html_url":"https://github.com/karel-un","followers_url":"https://api.github.com/users/karel-un/followers","following_url":"https://api.github.com/users/karel-un/following{/other_user}","gists_url":"https://api.github.com/users/karel-un/gists{/gist_id}","starred_url":"https://api.github.com/users/karel-un/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karel-un/subscriptions","organizations_url":"https://api.github.com/users/karel-un/orgs","repos_url":"https://api.github.com/users/karel-un/repos","events_url":"https://api.github.com/users/karel-un/events{/privacy}","received_events_url":"https://api.github.com/users/karel-un/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-14T10:46:39Z","updated_at":"2018-03-14T10:46:39Z","closed_at":null,"author_association":"NONE","body":"### OrientDB Version: 2.2.33\r\n### Java Version: Oracle JDK 1.8.0.162\r\n### OS: Gentoo Linux x86-64, kernel 4.14.26\r\n\r\n## Expected behavior  \r\nAfter DISCONNECT from database in remote mode orientdb process should release file descriptors of given database files.\r\n\r\n## Actual behavior  \r\nAfter DISCONNECT from database in remote mode orientdb process has database files still open. This is inconsistent behaviour and prevents connecting to database from other process, from console in plocal mode or working with them. To fix this orientdb process has to be restarted.\r\n\r\n## Steps to reproduce\r\n\r\n1. start orientdb service (Gentoo example):\r\n```\r\nrc-service orientdb start\r\n```\r\n2. list open files of orientdb service and see that no files are open for any database:\r\n```\r\nlsof -p `ps ax | grep -v grep | grep orientdb | cut -d \" \" -f 1`\r\n```\r\n3. run orient db console, connect to database in remote mode and immediately disconnect:\r\n```\r\nlocalhost /tmp # orientdb\r\n\r\nOrientDB console v.2.2.33 (build 77584cd6827f647cf4aa231cf27bd6f10bc04e2c, branch 2.2.x) https://www.orientdb.com\r\nType 'help' to display all the supported commands.\r\nInstalling extensions for GREMLIN language v.2.6.0\r\n\r\norientdb> connect remote:localhost/GratefulDeadConcerts admin admin\r\n\r\nConnecting to database [remote:localhost/GratefulDeadConcerts] with user 'admin'...OK\r\norientdb {db=GratefulDeadConcerts}> disconnect\r\n\r\nDisconnecting from the database [GratefulDeadConcerts]...OK\r\norientdb> quit\r\n```\r\n4. list open files of orientdb service again and see that GratefulDeadConcerts files are still open:\r\n```\r\nlsof -p `ps ax | grep -v grep | grep orientdb | cut -d \" \" -f 1`\r\n```\r\n"}}
{"actor":{"display_login":"karel-un"}}