You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Update and processing of gmt_data_server.txt is not robust #3723
I've seen these when running the tests in parallel at a time that happens to coincide with the refresh of the data server list. One gets messages like this:
ERROR]: Read error first record in file /home/gia/.gmt/server/gmt_data_server.txt
apparently because that file got clobbered by another process and now it is zero bytes. Because of the short course I have not had time to investigate more but will be looking at flock as we do for gmt.history. Also, when the above situation arises we could take some other action than complain, such as delete and redownload.
The current plan is to use flock on a dummy file since I cannot set flock on the file being downloaded. So will try this scheme when we wish to download file A:
Create /tmp/A.download
Get exclusive flock on that file, meaning other files trying to do the same must wait
Do the libcurl download of A
Release the lock and delete the file A.download.
Will make a branch and simulate this via the schemes listed on this page.
Activity
PaulWessel commentedon Jul 26, 2020
The current plan is to use flock on a dummy file since I cannot set flock on the file being downloaded. So will try this scheme when we wish to download file A:
Will make a branch and simulate this via the schemes listed on this page.
seisman commentedon Jul 31, 2020
I believe the issue was fixed in #3735.