Skip to content

Conversation

@seisman
Copy link
Member

@seisman seisman commented Aug 1, 2020

Backport #3735, #3768, #3780, #3785, and #3804.

PaulWessel and others added 5 commits August 1, 2020 16:09
* Try to use filelock for downloads

We want to avoid race conditions on gmt_data_server.txt and gmt_hash_server.txt.

* Update gmt_remote.c

* Delete a failing gmt_data_server.txt file so it can be regenerated

If for whatever reason the gmt_data_server.txt ends up blank, reading will fail.  Rather than just complain about it, we now delete the file since we (a) know it is broken and (b) unless it is removed we will not attempt to refresh it for another cycle (by default 24 hours).
Since the URL of a quiery is not a good file name, we do not create an advisory lock file for such downloads.  Addresses #3765 hopefully.
Now both places where lockfiles are used avoids URL queries.  Closes #3765.
@seisman seisman requested review from PaulWessel and joa-quim August 1, 2020 20:12
Copy link
Member

@PaulWessel PaulWessel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this looks good.

@PaulWessel
Copy link
Member

PaulWessel commented Aug 1, 2020

I should be more careful adding the label BUG when it is one - like clobbering the gmt_data_server.txt really is.

@seisman seisman merged commit 6dd8e1f into 6.1 Aug 1, 2020
@seisman seisman deleted the backport-file-lock branch August 1, 2020 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants