<p>Probably it requires a mechanism to detect if a reload operation is ongoing -- there are two structures caching the records from the database, one active and one to build the new list on reload, rotating once the reload is finished. But if many reload operations happen at the same time, then it can be a conflict. I have to check the code, I don't recall who written that part and what safety checks are in place.</p>
<p>Normally, if the rpc reload command is sent via fifo file, it cannot be more than one executed at a time, but if you do it over http, then it can be a race.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/1939#issuecomment-487620038">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZPSCPPCC356JGHKYNTPS4GATANCNFSM4HIVX7DA">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABO7UZIYEQX4FWNDCFUQNQ3PS4GATANCNFSM4HIVX7DA.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"PERSON","message":"@miconda in #1939: Probably it requires a mechanism to detect if a reload operation is ongoing -- there are two structures caching the records from the database, one active and one to build the new list on reload, rotating once the reload is finished. But if many reload operations happen at the same time, then it can be a conflict. I have to check the code, I don't recall who written that part and what safety checks are in place.\r\n\r\nNormally, if the rpc reload command is sent via fifo file, it cannot be more than one executed at a time, but if you do it over http, then it can be a race."}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1939#issuecomment-487620038"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/1939#issuecomment-487620038",
"url": "https://github.com/kamailio/kamailio/issues/1939#issuecomment-487620038",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>