Page MenuHomeDevCentral

Handle .geoipupdate lock file
ClosedPublic

Authored by dereckson on Mar 16 2023, 19:14.
Tags
None
Referenced Files
F45186834: D2902.id.diff
Thu, Aug 20, 17:43
F45156959: D2902.diff
Thu, Aug 20, 12:56
F45114284: D2902.diff
Thu, Aug 20, 07:07
Unknown Object (File)
Sun, Aug 16, 21:49
Unknown Object (File)
Sun, Aug 16, 15:20
Unknown Object (File)
Sun, Aug 16, 06:38
Unknown Object (File)
Fri, Aug 14, 12:24
Unknown Object (File)
Fri, Aug 14, 03:32
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 Not Applicable
Unit
Tests Not Applicable

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.