summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erikj@jki.re>2019-02-25 15:52:45 +0000
committerGitHub <noreply@github.com>2019-02-25 15:52:45 +0000
commit17009e689b35976cdf897a72b065e33a1a098a3a (patch)
treef313a6b8ef13eb1b4d8008f6e80aa1af7cd8569c
parentmore fix edu batching hackery (diff)
parentAdd some debug to help with #4733 (diff)
downloadsynapse-17009e689b35976cdf897a72b065e33a1a098a3a.tar.xz
Merge pull request #4734 from matrix-org/rav/repl_debug
Add some debug to help with #4733
-rw-r--r--changelog.d/4734.misc1
-rw-r--r--synapse/replication/tcp/protocol.py3
2 files changed, 4 insertions, 0 deletions
diff --git a/changelog.d/4734.misc b/changelog.d/4734.misc
new file mode 100644

index 0000000000..f4e3aeb44f --- /dev/null +++ b/changelog.d/4734.misc
@@ -0,0 +1 @@ +Add some debug to help with #4733. diff --git a/synapse/replication/tcp/protocol.py b/synapse/replication/tcp/protocol.py
index 0b3fe6cbf5..4f4d9915a8 100644 --- a/synapse/replication/tcp/protocol.py +++ b/synapse/replication/tcp/protocol.py
@@ -52,6 +52,7 @@ indicate which side is sending, these are *not* included on the wire:: import fcntl import logging import struct +import traceback from collections import defaultdict from six import iteritems, iterkeys @@ -323,6 +324,8 @@ class BaseReplicationStreamProtocol(LineOnlyReceiver): we or the remote has closed the connection) """ logger.info("[%s] Stop producing", self.id()) + # debug for #4733 + logger.info("Traceback: %s", "".join(traceback.format_stack())) self.on_connection_closed() def connectionLost(self, reason):