1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-11 15:21:03 +01:00
phorge-phorge/src
epriestley 6417e950f6 Don't reclaim resources that have a destroyed lease less than 3 minutes old
Summary:
Ref T13676. The 3-minute grace period when a resource can not be reclaimed after its leases are released currently doesn't work reliably because the Resource object usually isn't actually updated when a lease is released.

Add an additional check for recently-destroyed leases, and extend the grace period if we find any.

Test Plan:
  - See T13676. Ran reproduction sequence there, observed immediate resource reclamation.
  - Applied patch.
  - Ran sequence again, observed repository B wait 3 minutes to reclaim a repository A resource.

Subscribers: PHID-OPKG-gm6ozazyms6q6i22gyam

Maniphest Tasks: T13676

Differential Revision: https://secure.phabricator.com/D21803
2022-05-03 15:57:16 -07:00
..
__tests__ Use PhutilClassMapQuery instead of PhutilSymbolLoader 2015-08-14 07:49:01 +10:00
aphront Remove product literal strings in "pht()", part 11 2022-04-25 16:46:24 -07:00
applications Don't reclaim resources that have a destroyed lease less than 3 minutes old 2022-05-03 15:57:16 -07:00
docs Remove the "Phragment" application 2022-04-25 16:46:27 -07:00
extensions
infrastructure Fix various "strlen(null)" PHP 8.1 issues on "bin/phd" and "bin/drydock" pathways 2022-05-03 15:57:15 -07:00
view Remove product literal strings in "pht()", part 25 2022-04-25 16:46:26 -07:00
__phutil_library_init__.php
__phutil_library_map__.php Remove the "Phragment" application 2022-04-25 16:46:27 -07:00