This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
remove_deleted_email_pushers background job fails with psycopg2.ProgrammingError when unlinked addresses exist #10729
Labels
S-Minor
Blocks non-critical functionality, workarounds exist.
T-Defect
Bugs, crashes, hangs, security vulnerabilities, or other reported issues.
X-Release-Blocker
Must be resolved before making a release
We found the following traceback when testing develop this morning. This is related to #10581:
Synapse traceback logs
This error refers to this code:
synapse/synapse/storage/databases/main/pusher.py
Lines 432 to 443 in ad17fbd
for row in txn:
would work, except that in the inner loop then reusestxn
to execute a delete.for row in txn
is then executing on theDELETE
statement, which of course returns no rows. Thus we end up withpsycopg2.ProgrammingError: no results to fetch
.This can be fixed by simply doing the following instead.
The server seems to otherwise start OK, but this background job should be fixed before we release v1.42.0rc1.
The text was updated successfully, but these errors were encountered: