{"action":"created","issue":{"url":"https://api.github.com/repos/Comcast/sirius/issues/114","labels_url":"https://api.github.com/repos/Comcast/sirius/issues/114/labels{/name}","comments_url":"https://api.github.com/repos/Comcast/sirius/issues/114/comments","events_url":"https://api.github.com/repos/Comcast/sirius/issues/114/events","html_url":"https://github.com/Comcast/sirius/pull/114","id":59987911,"number":114,"title":"Add backup_wal.sh and remove compacting dirs","user":{"login":"weggert","id":1964812,"avatar_url":"https://avatars.githubusercontent.com/u/1964812?v=3","gravatar_id":"","url":"https://api.github.com/users/weggert","html_url":"https://github.com/weggert","followers_url":"https://api.github.com/users/weggert/followers","following_url":"https://api.github.com/users/weggert/following{/other_user}","gists_url":"https://api.github.com/users/weggert/gists{/gist_id}","starred_url":"https://api.github.com/users/weggert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weggert/subscriptions","organizations_url":"https://api.github.com/users/weggert/orgs","repos_url":"https://api.github.com/users/weggert/repos","events_url":"https://api.github.com/users/weggert/events{/privacy}","received_events_url":"https://api.github.com/users/weggert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-05T17:45:02Z","updated_at":"2015-03-06T14:37:56Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Comcast/sirius/pulls/114","html_url":"https://github.com/Comcast/sirius/pull/114","diff_url":"https://github.com/Comcast/sirius/pull/114.diff","patch_url":"https://github.com/Comcast/sirius/pull/114.patch"},"body":"This change adds a new script, backup_wal.sh.  It is the equivalent of\r\ncompact_wal.sh, however it does not try to do any compacting.  It simply\r\nmakes a backup of uberstore.\r\n\r\nThe change also adds a step to both compact_wal.sh and backup_wal.sh to\r\nremove any .compacting directories that exist.  These directories are\r\ncreated during live compaction and are temporary.  If Sirius is stopped\r\nduring compaction, they may exist and if the timing is right they can\r\nalmost double the size of the uberstore.\r\n\r\nThey would be deleted when the first compaction starts anyway, so they\r\nserve no useful purpose and can be deleted to save disk space."},"comment":{"url":"https://api.github.com/repos/Comcast/sirius/issues/comments/77568212","html_url":"https://github.com/Comcast/sirius/pull/114#issuecomment-77568212","issue_url":"https://api.github.com/repos/Comcast/sirius/issues/114","id":77568212,"user":{"login":"clinedome-work","id":6096292,"avatar_url":"https://avatars.githubusercontent.com/u/6096292?v=3","gravatar_id":"","url":"https://api.github.com/users/clinedome-work","html_url":"https://github.com/clinedome-work","followers_url":"https://api.github.com/users/clinedome-work/followers","following_url":"https://api.github.com/users/clinedome-work/following{/other_user}","gists_url":"https://api.github.com/users/clinedome-work/gists{/gist_id}","starred_url":"https://api.github.com/users/clinedome-work/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clinedome-work/subscriptions","organizations_url":"https://api.github.com/users/clinedome-work/orgs","repos_url":"https://api.github.com/users/clinedome-work/repos","events_url":"https://api.github.com/users/clinedome-work/events{/privacy}","received_events_url":"https://api.github.com/users/clinedome-work/received_events","type":"User","site_admin":false},"created_at":"2015-03-06T14:37:56Z","updated_at":"2015-03-06T14:37:56Z","body":"This looks good. It will be safe to remove any `.compacting` directories as long as Sirius isn't running. It'd be nice to add a \"running\" detection, but there's no way to detect that, so I'm fine with this. It might be a good idea to add a \"don't execute this while your application is running\" comment in the script. Past that, I'm :+1: here."}}