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

Component Checks & agents
Title Fixed race condition when mulitple Check_MK helpers updated the ipaddresses.cache file
Date Mar 25, 2017
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
1.5.0i1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.4.0b5 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

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.

To the list of all Werks