Closed authendic closed 2 years ago
Hmm, yeah. That's hard to get around. We could have the Close() method interrupt saving to the compressed file and delete the half created file.... But if people don't call close or don't wait for it to finish... One goroutine can't stop the world - or the process - from ending.
Do you know if the process correctly picks up if you restart? A least-effort solution would be to try again when the process restarts and overwrite the half-created file.
I think this is actually fixed now, BTW.
compressing goroutine will be interrupted when main routine exit. and the .gz file is semi-finished