Page MenuHomePhabricator

Improve PoolCounterWork logic to cover possible raised exceptions
Closed, ResolvedPublic

Description

Motivation

At the moment code in pool counter isn't exception-safe and therefore the case when PoolCounter isn't released is possible.

Expected Result

  • PoolCounterWork should cover the case when doWork raises an exception
  • PoolCounterWork should be covered by tests

Event Timeline

Change 587212 had a related patch set uploaded (by Peter.ovchyn; owner: Peter.ovchyn):
[mediawiki/core@master] poolcounter: Add tests for PoolCounterWork

https://gerrit.wikimedia.org/r/587212

daniel triaged this task as Medium priority.Apr 7 2020, 1:01 PM
daniel moved this task from Inbox to Backlog on the Platform Team Workboards (Clinic Duty Team) board.

Change 587212 merged by jenkins-bot:
[mediawiki/core@master] poolcounter: Call poolCounter->release on exception and add tests for PoolCounterWork

https://gerrit.wikimedia.org/r/587212