This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
synapse_pushers
metric overcounts on every /pushers/set
request
#13295
Labels
A-Push
Issues related to push/notifications
S-Tolerable
Minor significance, cosmetic issues, low or no impact to users.
T-Defect
Bugs, crashes, hangs, security vulnerabilities, or other reported issues.
When handling a
/pushers/set
request, Synapse removes any matching pushers belonging to a different user, then callsPusherPool.add_pusher
:synapse/synapse/rest/client/pusher.py
Lines 106 to 125 in fe1daad
PusherPool.add_pusher
eventually creates a new pusher to replace the existing one:synapse/synapse/push/pusherpool.py
Lines 354 to 359 in e24ff8e
Critically, it increments the
synapse_pushers
metric, regardless of whether it replaced an existing pusher, so stopped pushers can be included in the count.The text was updated successfully, but these errors were encountered: