diff options
author | Till <2353100+S7evinK@users.noreply.github.com> | 2024-04-09 07:49:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-09 07:49:56 +0200 |
commit | 5c0ceec2a62e2c1003aa72b4fa78bb09e53c3a84 (patch) | |
tree | 6d6da23247e6c2578f0fbabbb130cf642c551b41 /appservice/query | |
parent | 8aa088f7130d571ee6021d8547092162b3895b71 (diff) |
Don't attempt to send transactions if Dendrite is shutting down (#3356)
This should avoid confusions with logs like:
```
time="2024-04-08T08:38:45.104235081Z" level=error msg="Failed to set \"scs.ems.host\" as assumed offline" func="github.com/matrix-org/dendrite/federationapi/statistics.(*ServerStatistics).Failure" file="github.com/matrix-org/dendrite/federationapi/statistics/statistics.go:204" error="sqlutil.WithTransaction.Begin: sql: database is closed"
time="2024-04-08T08:38:45.104239201Z" level=error msg="Failed to set \"obermui.de\" as assumed offline" func="github.com/matrix-org/dendrite/federationapi/statistics.(*ServerStatistics).Failure" file="github.com/matrix-org/dendrite/federationapi/statistics/statistics.go:204" error="sqlutil.WithTransaction.Begin: sql: database is closed"
```
or
```
time="2024-04-08T08:38:45.105235411Z" level=error msg="Failed to get pending EDUs for \"retro76.net\"" func="github.com/matrix-org/dendrite/federationapi/queue.(*destinationQueue).getPendingFromDatabase" file="github.com/matrix-org/dendritefederationapi/queue/destinationqueue.go:258" error="sqlutil.WithTransaction.Begin: sql: database is closed"
```
[skip ci]
Diffstat (limited to 'appservice/query')
0 files changed, 0 insertions, 0 deletions