This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Synapse cannot replicate data that's bigger than 16384 bytes #6327
Labels
A-Workers
Problems related to running Synapse in Worker Mode (or replication)
O-Uncommon
Most users are unlikely to come across this or unexpected workflow
S-Tolerable
Minor significance, cosmetic issues, low or no impact to users.
T-Defect
Bugs, crashes, hangs, security vulnerabilities, or other reported issues.
Description
I'm running my Synapse in worker mode. When changing my
m.direct
account data, Synapse's master process attempts to replicate that to other workers. Sending fails however, due to the following code:synapse/synapse/replication/tcp/protocol.py
Lines 291 to 295 in 4e1c7b7
Removing that block means that messages are sent, but that's probably not the correct solution here.
It's worth noting that this doesn't seem to affect any functionality here, as even after removing the block, the other workers drop the
m.direct
account_data information because they don't care about it:But maybe if I was running other types of workers, they would care about it? Then it would matter if the replication data failed to send.
Anyways, we probably shouldn't be hitting our limit and dropping things. Instead we should either raise it or break up the data into chunks and then send them separately.
Version information
Version: v1.5.0
Install method: pip
The text was updated successfully, but these errors were encountered: