diff --git a/pkg/cmd/roachtest/cluster.go b/pkg/cmd/roachtest/cluster.go index 4bdc53e742b9..ca28ca8f8866 100644 --- a/pkg/cmd/roachtest/cluster.go +++ b/pkg/cmd/roachtest/cluster.go @@ -1071,7 +1071,9 @@ func (c *cluster) setTest(t testI) { func (c *cluster) Save(ctx context.Context, msg string, l *logger) { l.PrintfCtx(ctx, "saving cluster %s for debugging (--debug specified)", c) // TODO(andrei): should we extend the cluster here? For how long? - c.destroyState.alloc.Freeze() + if c.destroyState.owned { // we won't have an alloc for an unowned cluster + c.destroyState.alloc.Freeze() + } c.r.markClusterAsSaved(c, msg) c.destroyState.mu.Lock() c.destroyState.mu.saved = true