{"action":"created","issue":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/4590","labels_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/4590/labels{/name}","comments_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/4590/comments","events_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/4590/events","html_url":"https://github.com/orientechnologies/orientdb/issues/4590","id":95447206,"number":4590,"title":"Restore is not dealing with existing collections_<>.sbc files","user":{"login":"rtm81","id":1322712,"avatar_url":"https://avatars.githubusercontent.com/u/1322712?v=3","gravatar_id":"","url":"https://api.github.com/users/rtm81","html_url":"https://github.com/rtm81","followers_url":"https://api.github.com/users/rtm81/followers","following_url":"https://api.github.com/users/rtm81/following{/other_user}","gists_url":"https://api.github.com/users/rtm81/gists{/gist_id}","starred_url":"https://api.github.com/users/rtm81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rtm81/subscriptions","organizations_url":"https://api.github.com/users/rtm81/orgs","repos_url":"https://api.github.com/users/rtm81/repos","events_url":"https://api.github.com/users/rtm81/events{/privacy}","received_events_url":"https://api.github.com/users/rtm81/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/orientechnologies/orientdb/labels/invalid","name":"invalid","color":"e6e6e6"},{"url":"https://api.github.com/repos/orientechnologies/orientdb/labels/wontfix","name":"wontfix","color":"ffffff"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-07-16T14:35:25Z","updated_at":"2015-07-17T12:31:30Z","closed_at":"2015-07-17T11:25:09Z","body":"I had the same bug as in issue #4439 with Orientdb version 2.0.10.\r\nAnd when i found the bug was fixed, i switch to version 2.0.12. \r\nNow my tests are running, but i am concerned of this log message.\r\n\r\nJul 16, 2015 4:02:57 PM com.orientechnologies.common.log.OLogManager log\r\nSCHWERWIEGEND: {db=database} File collections_48.sbc is not registered in 'file name - id' map but exists in file system, probably you work in distributed storage. If it is not true, please create bug in bug tracker https://github.com/orientechnologies/orientdb/issues .\r\n\r\nI am **not** using distributed storage, it is plocal.\r\n\r\nHere is my scenario:\r\nI am running integration tests that are changing the database. \r\nIn order to have a clean database before every new test run, i am restoring a known database zip before each test.\r\nFor the restore i use this method:\r\ncom.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.restore(InputStream, Map<String, Object>, Callable<Object>, OCommandOutputListener)\r\n\r\nIn my zip there is just one collections_<>.sbc file.\r\n![backup-zip](https://cloud.githubusercontent.com/assets/1322712/8725848/e7167e36-2bd6-11e5-86b8-57b85bce45bd.png)\r\n\r\n\r\nAfter the restore is finished my database folder contains 3 such files.\r\n![after-restore](https://cloud.githubusercontent.com/assets/1322712/8725867/0a0283f4-2bd7-11e5-985a-c601ab1801f4.png)\r\n\r\nNow i fear that some old data is still persistent after the restore.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/comments/122261197","html_url":"https://github.com/orientechnologies/orientdb/issues/4590#issuecomment-122261197","issue_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/4590","id":122261197,"user":{"login":"rtm81","id":1322712,"avatar_url":"https://avatars.githubusercontent.com/u/1322712?v=3","gravatar_id":"","url":"https://api.github.com/users/rtm81","html_url":"https://github.com/rtm81","followers_url":"https://api.github.com/users/rtm81/followers","following_url":"https://api.github.com/users/rtm81/following{/other_user}","gists_url":"https://api.github.com/users/rtm81/gists{/gist_id}","starred_url":"https://api.github.com/users/rtm81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rtm81/subscriptions","organizations_url":"https://api.github.com/users/rtm81/orgs","repos_url":"https://api.github.com/users/rtm81/repos","events_url":"https://api.github.com/users/rtm81/events{/privacy}","received_events_url":"https://api.github.com/users/rtm81/received_events","type":"User","site_admin":false},"created_at":"2015-07-17T12:31:30Z","updated_at":"2015-07-17T12:31:30Z","body":"The documentation (http://orientdb.com/docs/last/Console-command-Restore.html) says:\r\n\"Executes a restore of current opened database.\"\r\n\r\nThere is no word of saying: drop database before."}}