Werk #4465: Fixed race condition when mulitple Check_MK helpers updated the ipaddresses.cache file

KomponenteChecks & Agents
TitelFixed race condition when mulitple Check_MK helpers updated the ipaddresses.cache file
Datum2017-03-25 15:17:54
Checkmk EditionCheckmk Raw Edition (CRE)
Checkmk Version1.4.0b5,1.5.0i1
LevelTrivial Change
KlasseBug Fix
KompatibilitätKompatibel - benötigt kein manuelles Eingreifen

Check helpers now lock the ipaddresses.cache file when they want to update an ip address. The locked file is read, updated with the new content and written afterwards. The race condition happened when multiple check helpers tried to update the file at the same time, hereby removing some recently looked up ip addresses.