So they gracefully release the connection on error instead
of relying on reference-counting to call the Db's __del__
(which does not happen in Hypothesis tests) because a ref
to it is kept via the traceback object.
Depends on D1380.
Differential D1381 Authored by vlorentz on Apr 9 2019, 4:41 PM.
Details Summary So they gracefully release the connection on error instead Depends on D1380.
Diff Detail
Event TimelineHerald added a reviewer: Reviewers. · View Herald TranscriptApr 9 2019, 4:41 PM2019-04-09 16:41:38 (UTC+2) Comment Actions Build has FAILED Link to build: https://jenkins.softwareheritage.org/job/DSTO/job/tox/333/ Harbormaster failed remote builds in B5243: Diff 4435!Apr 9 2019, 4:56 PM2019-04-09 16:56:29 (UTC+2) Comment Actions Build has FAILED Link to build: https://jenkins.softwareheritage.org/job/DSTO/job/tox/343/ This revision is now accepted and ready to land.Apr 9 2019, 5:43 PM2019-04-09 17:43:05 (UTC+2) Harbormaster failed remote builds in B5272: Diff 4464!Apr 9 2019, 5:47 PM2019-04-09 17:47:20 (UTC+2) Comment Actions Build has FAILED Link to build: https://jenkins.softwareheritage.org/job/DSTO/job/tox/351/ Comment Actions Build is green Harbormaster completed remote builds in B5289: Diff 4481.Apr 9 2019, 6:14 PM2019-04-09 18:14:33 (UTC+2) Closed by commit rDSTOcf99702f18fc: Use the db_transaction decorator on all _add() methods. (authored by vlorentz). · Explain WhyApr 9 2019, 6:14 PM2019-04-09 18:14:53 (UTC+2) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 4464 swh/storage/storage.py
|