[OpenSIPS-Devel] [OpenSIPS/opensips] 86a038: clusterer: fix races when processing the sync end ...

Vlad Pătrașcu noreply at github.com
Tue Feb 22 22:27:12 UTC 2022


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 86a03866bd2eda7667b0775f3136f6f20ba07337
      https://github.com/OpenSIPS/opensips/commit/86a03866bd2eda7667b0775f3136f6f20ba07337
  Author: Vlad Patrascu <vladp at opensips.org>
  Date:   2022-02-23 (Wed, 23 Feb 2022)

  Changed paths:
    M modules/clusterer/clusterer.c
    M modules/clusterer/clusterer.h
    M modules/clusterer/sync.c
    M modules/clusterer/sync.h

  Log Message:
  -----------
  clusterer: fix races when processing the sync end packet

The BIN packet the marks the end of syncing might be processed before
data from the last sync packet(s) has been completely consumed by modules.
This would result in notifying modules and broadcasting the new
capability state to other nodes in the cluster too soon. The dialog module
for example might incorrectly drop dialogs before it has the chance to
confirm them through syncing.
This commit ensures that the post-sync actions are run after all sync
chunks have been delivered to modules.





More information about the Devel mailing list