You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/07/11 16:54:48 UTC
[GitHub] szha opened a new issue #11646: download function should avoid
race-condition
szha opened a new issue #11646: download function should avoid race-condition
URL: https://github.com/apache/incubator-mxnet/issues/11646
Currently the download function would directly write to target file path, which causes file integrity problem when multiple processes use the same logic to write to the same file.
https://github.com/apache/incubator-mxnet/blob/master/python/mxnet/gluon/utils.py#L223-L226
Alternative is to write to a temporary file first, and only move to target path upon download completion after verifying file integrity. Temporary file should be cleaned up at the end. This should help solve issues like #11616
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services