Page MenuHomeDevCentral

Handle .geoipupdate lock file
ClosedPublic

Authored by dereckson on Mar 16 2023, 19:14.
Tags
None
Referenced Files
Unknown Object (File)
Sun, May 10, 21:02
Unknown Object (File)
Fri, May 8, 19:31
Unknown Object (File)
Fri, May 8, 19:19
Unknown Object (File)
Thu, May 7, 12:17
Unknown Object (File)
Thu, Apr 30, 21:21
Unknown Object (File)
Tue, Apr 28, 14:43
Unknown Object (File)
Mon, Apr 27, 09:05
Unknown Object (File)
Sun, Apr 26, 09:05
Subscribers
None

Details

Summary

The geoipupdate client creates a lockfile to avoid race conditions.

Drawbacks of the current method is:

  • no lock file created at first run
  • can be confusing to see it afterwards

To address both those concerns, the wrapper creates and deletes
this lock file before and after the container run.

Reference: https://github.com/maxmind/geoipupdate-legacy/issues/79

Test Plan

Tested on docker-002

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Passed
Unit
No Test Coverage
Branch
main
Build Status
Buildable 4578
Build 4846: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Mar 16 2023, 19:15
This revision was automatically updated to reflect the committed changes.