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)
Tue, Nov 19, 10:12 PM
Unknown Object (File)
Mon, Nov 18, 6:02 AM
Unknown Object (File)
Fri, Nov 15, 10:52 PM
Unknown Object (File)
Mon, Nov 11, 8:29 PM
Unknown Object (File)
Fri, Nov 8, 4:00 PM
Unknown Object (File)
Sat, Oct 26, 12:23 AM
Unknown Object (File)
Oct 15 2024, 5:42 AM
Unknown Object (File)
Oct 9 2024, 8:54 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.