-
Notifications
You must be signed in to change notification settings - Fork 50
Description
I've been hitting a bug that is randomly occurring when pulling large OCI artifacts from the quay.io registry. I cannot provide a reliable reproducer, because I haven't been able to narrow it down, but here's the process:
- Prepare a big file in quay.io - 850MiB zip file as an OCI artifact is what I'm using
- Pull using python oras API
import oras.client
client = oras.client.OrasClient(insecure=False, tls_verify=True)
client.login(username="USERNAME, password="PASSWORD")
client.pull("quay.io:/org/image:tag", outdir="/tmp")
Sometimes this goes fine (I get ~30 secs pull time) and sometime it will hang indefinitely. When I observe the file while the pull hangs, it will grow up to a point (roughly halfway through, but not a consistent size) and then stay that partial size indefinitely. My guess is that the connection brakes at some point, in which case it should be properly error handled. Or maybe it's the chunk size? Not sure.
I've also turned on all possible debug loggers I could think of (oras, requests, urllib3), and nothing seems to error out at any level.