Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Downgrade repl stream time out error to warning (#16401)
Browse files Browse the repository at this point in the history
This is because if a worker reaches ~100% CPU then everything starts
lagging and we hit the log line a lot. When at error we invoke sentry
and that has a lot of overhead, which then puts even more pressure on
the worker.
  • Loading branch information
erikjohnston authored Sep 29, 2023
1 parent 79eb6c0 commit 20fb08e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/16401.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Downgrade replication stream time out error log lines to warning.
2 changes: 1 addition & 1 deletion synapse/replication/tcp/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ async def wait_for_stream_position(
try:
await make_deferred_yieldable(deferred)
except defer.TimeoutError:
logger.error(
logger.warning(
"Timed out waiting for repl stream %r to reach %s (%s)"
"; currently at: %s",
stream_name,
Expand Down

0 comments on commit 20fb08e

Please sign in to comment.