Page MenuHomeDevCentral

Handle .geoipupdate lock file
ClosedPublic

Authored by dereckson on Mar 16 2023, 19:14.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 20, 04:25
Unknown Object (File)
Fri, Nov 14, 05:36
Unknown Object (File)
Fri, Nov 14, 05:00
Unknown Object (File)
Thu, Nov 13, 19:10
Unknown Object (File)
Wed, Nov 12, 10:23
Unknown Object (File)
Wed, Nov 12, 01:34
Unknown Object (File)
Tue, Nov 11, 18:02
Unknown Object (File)
Sat, Nov 8, 18:22
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.