diff --git a/pkg/cmd/roachtest/tests/backup_restore_roundtrip.go b/pkg/cmd/roachtest/tests/backup_restore_roundtrip.go index 40229e642ea1..d8a42ada7bf5 100644 --- a/pkg/cmd/roachtest/tests/backup_restore_roundtrip.go +++ b/pkg/cmd/roachtest/tests/backup_restore_roundtrip.go @@ -186,6 +186,11 @@ func backupRestoreRoundTrip( m.ExpectDeaths(int32(n)) } + // Between each reset grab a debug zip from the cluster. + zipPath := fmt.Sprintf("debug-%d.zip", timeutil.Now().Unix()) + if err := testUtils.cluster.FetchDebugZip(ctx, t.L(), zipPath); err != nil { + t.L().Printf("failed to fetch a debug zip: %v", err) + } if err := testUtils.resetCluster(ctx, t.L(), clusterupgrade.CurrentVersion(), expectDeathsFn, []install.ClusterSettingOption{}); err != nil { return err }