{"action":"created","issue":{"url":"https://api.github.com/repos/arangodb/arangodb/issues/1581","repository_url":"https://api.github.com/repos/arangodb/arangodb","labels_url":"https://api.github.com/repos/arangodb/arangodb/issues/1581/labels{/name}","comments_url":"https://api.github.com/repos/arangodb/arangodb/issues/1581/comments","events_url":"https://api.github.com/repos/arangodb/arangodb/issues/1581/events","html_url":"https://github.com/arangodb/arangodb/issues/1581","id":117763635,"number":1581,"title":"Edges become invalid after related collections get reimported","user":{"login":"razvanphp","id":4599319,"avatar_url":"https://avatars.githubusercontent.com/u/4599319?v=3","gravatar_id":"","url":"https://api.github.com/users/razvanphp","html_url":"https://github.com/razvanphp","followers_url":"https://api.github.com/users/razvanphp/followers","following_url":"https://api.github.com/users/razvanphp/following{/other_user}","gists_url":"https://api.github.com/users/razvanphp/gists{/gist_id}","starred_url":"https://api.github.com/users/razvanphp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/razvanphp/subscriptions","organizations_url":"https://api.github.com/users/razvanphp/orgs","repos_url":"https://api.github.com/users/razvanphp/repos","events_url":"https://api.github.com/users/razvanphp/events{/privacy}","received_events_url":"https://api.github.com/users/razvanphp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"neunhoef","id":5286736,"avatar_url":"https://avatars.githubusercontent.com/u/5286736?v=3","gravatar_id":"","url":"https://api.github.com/users/neunhoef","html_url":"https://github.com/neunhoef","followers_url":"https://api.github.com/users/neunhoef/followers","following_url":"https://api.github.com/users/neunhoef/following{/other_user}","gists_url":"https://api.github.com/users/neunhoef/gists{/gist_id}","starred_url":"https://api.github.com/users/neunhoef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neunhoef/subscriptions","organizations_url":"https://api.github.com/users/neunhoef/orgs","repos_url":"https://api.github.com/users/neunhoef/repos","events_url":"https://api.github.com/users/neunhoef/events{/privacy}","received_events_url":"https://api.github.com/users/neunhoef/received_events","type":"User","site_admin":false},"milestone":null,"comments":12,"created_at":"2015-11-19T08:14:31Z","updated_at":"2016-06-08T20:21:59Z","closed_at":null,"body":"I hope the title is self explanatory, but this is really a pain in the a**, last night I wanted to keep a very big edge collection, that joins customers with posts, but reimport from a dump the latest customers and posts from `arangodump`.\r\n\r\nEverything seem fine, but the edge became invalid, so all `_to` and `_from` were pointing to `_unknown/12345`. Unloading and loading the collection does not help, also restarting arango.\r\n\r\nWhat worked in the end and took few hours, was dumping the edge again, sed the data file to replace the invalid pointers and reimport:\r\n```\r\nsed -i 's#\"_to\":\"_unknown#\"_to\":\"posts#g' customerCanSeePosts_185898d7669bb4264e3d00c0fa264afe.data.json\r\nsed -i 's#\"_from\":\"_unknown#\"_from\":\"customers#g' customerCanSeePosts_185898d7669bb4264e3d00c0fa264afe.data.json\r\n```\r\n\r\nThis is a huge pain when dealing with big data, so maybe you can improve this somehow.\r\n\r\nThank you!"},"comment":{"url":"https://api.github.com/repos/arangodb/arangodb/issues/comments/224715498","html_url":"https://github.com/arangodb/arangodb/issues/1581#issuecomment-224715498","issue_url":"https://api.github.com/repos/arangodb/arangodb/issues/1581","id":224715498,"user":{"login":"razvanphp","id":4599319,"avatar_url":"https://avatars.githubusercontent.com/u/4599319?v=3","gravatar_id":"","url":"https://api.github.com/users/razvanphp","html_url":"https://github.com/razvanphp","followers_url":"https://api.github.com/users/razvanphp/followers","following_url":"https://api.github.com/users/razvanphp/following{/other_user}","gists_url":"https://api.github.com/users/razvanphp/gists{/gist_id}","starred_url":"https://api.github.com/users/razvanphp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/razvanphp/subscriptions","organizations_url":"https://api.github.com/users/razvanphp/orgs","repos_url":"https://api.github.com/users/razvanphp/repos","events_url":"https://api.github.com/users/razvanphp/events{/privacy}","received_events_url":"https://api.github.com/users/razvanphp/received_events","type":"User","site_admin":false},"created_at":"2016-06-08T20:21:59Z","updated_at":"2016-06-08T20:21:59Z","body":"Ok, so the situation arised again, and problem is `--recycle-ids=true` for `arangorestore` does not have the desired effect, the edges still get invalid.\r\n\r\nWhat I did was to use arangodump with 3 collection names (without the edge) and then use arangorestore with the parameter. Is there any way I can prevent the drop and recreate of the collections using this way? How do I make him use truncate instead?"}}
{"actor":{"display_login":"razvanphp"}}