Skip to content

Commit 3bcdb42

Browse files
committed
backup: compaction dist sql processor now handles errors correctly
Previously, when one of the processor nodes in the backup compaction dist SQL plan ran into an error, the compaction job would continue on, blissfully unaware of the error. This would result in faulty job successes. This patch fixes the coordinator node so that errors from other nodes is properly handled and surfaced. Epic: None Release note: None
1 parent 2c6916a commit 3bcdb42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/backup/compaction_dist.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ func runCompactionPlan(
130130

131131
evalCtxCopy := execCtx.ExtendedEvalContext().Copy()
132132
dsp.Run(ctx, planCtx, nil /* txn */, plan, recv, evalCtxCopy, nil /* finishedSetupFn */)
133-
return nil
133+
return rowResultWriter.Err()
134134
}
135135

136136
// createCompactionPlan creates an un-finalized physical plan that will

0 commit comments

Comments
 (0)