{"action":"opened","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/18755","repository_url":"https://api.github.com/repos/JuliaLang/julia","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/18755/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/18755/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/18755/events","html_url":"https://github.com/JuliaLang/julia/issues/18755","id":180441602,"number":18755,"title":"IOStream stops updating position","user":{"login":"quinnj","id":2896623,"avatar_url":"https://avatars.githubusercontent.com/u/2896623?v=3","gravatar_id":"","url":"https://api.github.com/users/quinnj","html_url":"https://github.com/quinnj","followers_url":"https://api.github.com/users/quinnj/followers","following_url":"https://api.github.com/users/quinnj/following{/other_user}","gists_url":"https://api.github.com/users/quinnj/gists{/gist_id}","starred_url":"https://api.github.com/users/quinnj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quinnj/subscriptions","organizations_url":"https://api.github.com/users/quinnj/orgs","repos_url":"https://api.github.com/users/quinnj/repos","events_url":"https://api.github.com/users/quinnj/events{/privacy}","received_events_url":"https://api.github.com/users/quinnj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-01T06:34:32Z","updated_at":"2016-10-01T06:34:32Z","closed_at":null,"body":"Hopefully this is minimally reproducible enough:\r\n```julia\r\njulia> io = open(\"testing\", \"w\")\r\nIOStream(<file testing>)\r\n\r\njulia> write(io, zeros(UInt8, 131072))\r\n131072\r\n\r\njulia> position(io)\r\n131072\r\n\r\njulia> write(io, zeros(UInt8, 131072))\r\n131072\r\n\r\njulia> position(io)\r\n262144\r\n\r\njulia> io = open(\"testing\", \"w\")\r\nIOStream(<file testing>)\r\n\r\njulia> write(io, zeros(UInt8, 131073))\r\n131073\r\n\r\njulia> position(io)\r\n131073\r\n\r\njulia> write(io, zeros(UInt8, 131073))\r\n131073\r\n\r\njulia> position(io)\r\n131073\r\n\r\njulia> flush(io)\r\n\r\njulia> position(io)\r\n131073\r\n\r\njulia> close(io)\r\n\r\njulia> filesize(\"testing\")\r\n262146\r\n```\r\nNote that closing the IOStream does commit the writes to disk, but calling flush does not.\r\n\r\nThis is the root cause of https://github.com/JuliaStats/Feather.jl/issues/21"}}
{"actor":{"display_login":"quinnj"}}