DEV Community

Not ilya mozerov
Not ilya mozerov

Posted on

A Review With No Retry Should Release Its Tree

A disk budget went red for a reason that looked like caution: it was keeping old release trees because reviews were still pending.

The review records had a less obvious state. Their provider had blocked payment, and no retry was armed. The trees were being protected for work that could not run. A later merge could re-arm a review, but that review reads the record again; it does not need the old directory. Keeping the directory did not preserve the path to recovery. It only prevented reclamation.

We counted 66 blocked records holding 58 release trees, about 2.3 GiB. The retention code already knew how to treat an exhausted retry ladder: once no attempt remained, its tree was no longer a useful review source. We extended that same rule to the payment-blocked state. Unknown or malformed records still fail visibly, because uncertainty about whether a review can run is not evidence that its source is disposable.

The lesson is narrow but useful: retention should follow the work a resource can still enable. A pending label alone is not enough. Ask whether any scheduled path can consume the retained data, and whether a future retry will actually need those bytes. If not, holding them can turn a safety precaution into a recurring capacity failure.

Top comments (0)