{"action":"created","issue":{"url":"https://api.github.com/repos/gigablast/open-source-search-engine/issues/105","repository_url":"https://api.github.com/repos/gigablast/open-source-search-engine","labels_url":"https://api.github.com/repos/gigablast/open-source-search-engine/issues/105/labels{/name}","comments_url":"https://api.github.com/repos/gigablast/open-source-search-engine/issues/105/comments","events_url":"https://api.github.com/repos/gigablast/open-source-search-engine/issues/105/events","html_url":"https://github.com/gigablast/open-source-search-engine/issues/105","id":164058593,"number":105,"title":"Existing Rdb files wrongly replaced/removed when resuming killed merge","user":{"login":"alc-privacore","id":15614066,"avatar_url":"https://avatars.githubusercontent.com/u/15614066?v=3","gravatar_id":"","url":"https://api.github.com/users/alc-privacore","html_url":"https://github.com/alc-privacore","followers_url":"https://api.github.com/users/alc-privacore/followers","following_url":"https://api.github.com/users/alc-privacore/following{/other_user}","gists_url":"https://api.github.com/users/alc-privacore/gists{/gist_id}","starred_url":"https://api.github.com/users/alc-privacore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alc-privacore/subscriptions","organizations_url":"https://api.github.com/users/alc-privacore/orgs","repos_url":"https://api.github.com/users/alc-privacore/repos","events_url":"https://api.github.com/users/alc-privacore/events{/privacy}","received_events_url":"https://api.github.com/users/alc-privacore/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-06T11:52:53Z","updated_at":"2016-07-14T09:42:01Z","closed_at":null,"body":"When gb crashed after merging files, but before renaming the file from even -> odd number files, data loss will happen.\r\n\r\n**Scenario 1**\r\nInitial file list:\r\n```\r\nposdb0001.dat\r\nposdb0003.dat\r\nposdb0005.dat\r\nposdb0007.dat\r\nposdb0009.dat\r\nposdb0011.dat\r\n```\r\n\r\nFile list after merge, but gb died before renaming file:\r\n```\r\nposdb0001.dat\r\nposdb0003.dat\r\nposdb0005.dat\r\nposdb0007.dat\r\nposdb0008.002.dat\r\n```\r\n\r\nWhen gb is restarted, posdb0008.002.dat will be moved to posdb0001.dat replacing the existing file causing data loss from posdb0001.dat.\r\n\r\nThis has been fixed on privacore@f86e945d4941d7ef39af5182b9f4faaa8886ca1d and privacore@c5cc33ab4265a09de12805fd6788e522a0a8e5ba\r\n\r\n\r\n**Scenario 2**\r\nInitial file list:\r\n```\r\nposdb0001.dat\r\nposdb0003.dat\r\nposdb0005.dat\r\nposdb0007.dat\r\nposdb0009.dat\r\nposdb0011.dat\r\n```\r\n\r\nFile list after merge, but gb died before renaming file:\r\n```\r\nposdb0001.dat\r\nposdb0002.002.dat\r\nposdb0009.dat\r\nposdb0011.dat\r\n```\r\n\r\nWhen gb is restarted, posdb0009.dat and posdb0011.dat will be deleted, and posdb0002.002.dat will be named posdb0009.dat causing data loss from posdb0009.dat and posdb0011.dat."},"comment":{"url":"https://api.github.com/repos/gigablast/open-source-search-engine/issues/comments/232617631","html_url":"https://github.com/gigablast/open-source-search-engine/issues/105#issuecomment-232617631","issue_url":"https://api.github.com/repos/gigablast/open-source-search-engine/issues/105","id":232617631,"user":{"login":"alc-privacore","id":15614066,"avatar_url":"https://avatars.githubusercontent.com/u/15614066?v=3","gravatar_id":"","url":"https://api.github.com/users/alc-privacore","html_url":"https://github.com/alc-privacore","followers_url":"https://api.github.com/users/alc-privacore/followers","following_url":"https://api.github.com/users/alc-privacore/following{/other_user}","gists_url":"https://api.github.com/users/alc-privacore/gists{/gist_id}","starred_url":"https://api.github.com/users/alc-privacore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alc-privacore/subscriptions","organizations_url":"https://api.github.com/users/alc-privacore/orgs","repos_url":"https://api.github.com/users/alc-privacore/repos","events_url":"https://api.github.com/users/alc-privacore/events{/privacy}","received_events_url":"https://api.github.com/users/alc-privacore/received_events","type":"User","site_admin":false},"created_at":"2016-07-14T09:42:01Z","updated_at":"2016-07-14T09:42:01Z","body":"Second scenario fixed in privacore@a809b0607bda076fd4ef2784c12e52cb4a063f98 and privacore@bf7463c9ab923218d181fd899fcf1fdacc9f07b2"}}
{"actor":{"display_login":"alc-privacore"}}