{"action":"opened","issue":{"url":"https://api.github.com/repos/PacificBiosciences/FALCON_unzip/issues/26","repository_url":"https://api.github.com/repos/PacificBiosciences/FALCON_unzip","labels_url":"https://api.github.com/repos/PacificBiosciences/FALCON_unzip/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/PacificBiosciences/FALCON_unzip/issues/26/comments","events_url":"https://api.github.com/repos/PacificBiosciences/FALCON_unzip/issues/26/events","html_url":"https://github.com/PacificBiosciences/FALCON_unzip/issues/26","id":168342776,"number":26,"title":"poor shutdown/restart handling with partially written files","user":{"login":"flowers9","id":11161996,"avatar_url":"https://avatars.githubusercontent.com/u/11161996?v=3","gravatar_id":"","url":"https://api.github.com/users/flowers9","html_url":"https://github.com/flowers9","followers_url":"https://api.github.com/users/flowers9/followers","following_url":"https://api.github.com/users/flowers9/following{/other_user}","gists_url":"https://api.github.com/users/flowers9/gists{/gist_id}","starred_url":"https://api.github.com/users/flowers9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flowers9/subscriptions","organizations_url":"https://api.github.com/users/flowers9/orgs","repos_url":"https://api.github.com/users/flowers9/repos","events_url":"https://api.github.com/users/flowers9/events{/privacy}","received_events_url":"https://api.github.com/users/flowers9/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-29T14:53:49Z","updated_at":"2016-07-29T14:53:49Z","closed_at":null,"body":"There are places in get_read_hcgt_map.py (1), phasing.py (6), run_quiver.py (1), and unzip.py (1) where the code checks to see if output files from earlier parts are present before running subsequent parts.  However, it doesn't check to see if those are files were finished being written to, merely present, and the code that writes those files doesn't have any way of signaling partially writen files.  So it's quite possible, should the run be interrupted for some reason, for a restarted run to read partially written files and attempt to process them as if they were complete.\r\n\r\nThe straightforward solution is to write the files to a temp file, and then rename them after they're complete and closed."}}
{"actor":{"display_login":"flowers9"}}