uber-archive / makisu

Fast and flexible Docker image building tool, works in unprivileged containerized environments like Mesos and Kubernetes.
Apache License 2.0
2.41k stars 153 forks source link

Forgive the case when a whiteout file trying to cover nonexistent path #361

Closed yiranwang52 closed 3 years ago

yiranwang52 commented 3 years ago

Retry #358

This error happens sometimes with python package's .dist-info or .pth files. For example, installing aiohttp package in a conda environment, then when applying cache of layer, this error message happens often:

[error] 2021-03-09 17:36:12.468002: failed to execute build plan: execute stage: build stage 0: build node: apply cache: untar reader: add hdr from tar to layer: update memfs with file /home/ray/anaconda3/lib/python3.7/site-packages/.wh.aiohttp-3.7.4.dist-info: whiteout nonexistent path /home/ray/anaconda3/lib/python3.7/site-packages/aiohttp-3.7.4.dist-info

Those files were probably created or removed asynchronously. It doesn't hurt to ignore this case; Change to a warning message instead.