Imports failing with invalid memory address or nil pointer dereference error
Context
Found during gitlab#350920 (closed).
Problem
This is a very rare issue but a few imports failed due to:
1 error occurred:
* pre importing tagged manifests: pre importing manifest: pre importing manifest: importing layers: transferring blob with digest <digest>: %!v(PANIC=Error method: runtime error: invalid memory address or nil pointer dereference)
So it looks like we have a memory addressing issue in the error handling path for blob transfers.
Solution
We need to find out the reason and push a fix for it.