Closed Cherry closed 4 years ago
According to https://www.backblaze.com/b2/docs/large_files.html it says "If you have started a large file, but don't want to finish, you can use b2_cancel_large_file to delete all of the parts that have been uploaded so far." And looking at the code, it calls canceling large file or does it calling that not seem to clean up parts?
It looks like you're right, thanks! I'll test and confirm as soon as I can.
Whoops, I totally forgot about this issue! It does indeed look like we're cleaning up parts correctly for an upload. I'm not certain about cleaning up parts copied with b2_copy_part
though, and the docs don't yield much insight - more investigation needed.
I'm going to mark this as closed for the time-being. Everything looks good.
As title. If an upload/copy is cancelled, the already uploaded/copied parts aren't cleaned up, leaving dangling file parts in b2.