-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrap bathymetry download in a try/catch #219
base: main
Are you sure you want to change the base?
Conversation
…ClimaOcean.jl into glw-nc/robust-downloading
when you suggested a try-catch I thought you meant in the main module... then I notice there is already something there... ClimaOcean.jl/src/Bathymetry.jl Lines 103 to 108 in 5d63706
wouldn't it be more robust if we had the |
I am not sure this is a solution. I don't think retrying a download quickly after it failed might make it work. We could try to catch the error and figure out how to work around it. |
Umm no the issue is not the download itself, but rather when we try to load the file after a partial download has occurred. If the download fails, a corrupted file will be present. We need to redownload in that case. This is what caused the docs load to fail, for some reason the download failed on the first time. Then we tried to re-run in the same buildkite build and there was a corrupted file in the scratch depot |
The error that Navid was referring to is really because of the server being down. |
There were two errors. The first was because the server was down. The second error came from I have also observed locally the same issue. Are you claiming that data corruption cannot occur? |
Nono, data corruption can definitely occur. I was pointing out that the error highlighted by Navid was a downloading issue. |
Whoops, maybe I am wrong, the error is because of data loading |
Here's the second error: it says
that occurs on the second try. On the first try, we got a server / download error:
Note that ClimaOcean.jl/src/Bathymetry.jl Lines 91 to 92 in cd2677b
however as far as I can tell it does not check if the file is valid / uncorrupted. In other words, This is the problem I am trying to fix. |
@navidcy