Sometime entries are removed from the glidein_config file
Troubleshooting [#14952] I noticed that sometimes the entries are lost from the glidein_config file.
This should not happen.
I was unable to identify and reproduce exactly when this happens.
I suspect it is a race condition in add_config_line.
This function is called also by periodic scripts that can run in parallel and is not thread safe.
A race condition may cause a function calling add_config_line to start from an empty glidein_config if a previous call is in progress.
This would erase all previous values.
#1 Updated by Marco Mambelli almost 4 years ago
- Status changed from New to Feedback
- Assignee changed from Marco Mambelli to Parag Mhashilkar
- Target version changed from v3_2_x to v3_2_17
Changes are in v3/14953 (branched out of v3/14952 to get the fix)
New function add_config_line_safe added using flock to handle parallel invocations in startd cron.
glidein_startup.sh still uses the old function add_config_line because executions are all serial