Page MenuHomePhabricator

When a lease acquires a resource but the resource fails to activate, throw the lease back in the pool
ClosedPublic

Authored by epriestley on Feb 13 2018, 2:36 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 19, 9:26 PM
Unknown Object (File)
Thu, Dec 19, 9:26 PM
Unknown Object (File)
Tue, Dec 17, 1:39 PM
Unknown Object (File)
Sat, Dec 7, 6:32 PM
Unknown Object (File)
Fri, Dec 6, 4:37 AM
Unknown Object (File)
Thu, Nov 28, 5:18 PM
Unknown Object (File)
Thu, Nov 28, 3:46 AM
Unknown Object (File)
Nov 22 2024, 3:57 AM
Subscribers
Restricted Owners Package

Details

Summary

Depends on D19075. Ref T13073. If a lease acquires a resource but finds that the resource builds directly into a dead state (which can happen for any number of reasonable reasons), reset the lease and throw it back in the pool.

This isn't the lease's fault and it hasn't caused any side effects or done anything we can't undo, so we can safely reset it and throw it back in the pool.

Test Plan
  • Created a blueprint which throws from allocateResource() so that resources never activate.
  • Tried to lease it with bin/drydock lease ....
  • Before patch: lease was broken and destroyed after a failed activation.
  • After patch: lease was returned to the pool after a failed activation.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Owners added a subscriber: Restricted Owners Package.Feb 13 2018, 2:36 PM
This revision was not accepted when it landed; it landed in state Needs Review.Feb 13 2018, 9:18 PM
This revision was automatically updated to reflect the committed changes.