Skip to content

Commit 71cd613

Browse files
committed
log warning if command fails
1 parent 9ec2489 commit 71cd613

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

flow/activities/flowable.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,10 +521,12 @@ func (a *FlowableActivity) GetQRepPartitions(ctx context.Context,
521521
defer cancel()
522522
if bytes, connErr := tableSizeEstimatorConn.GetTableSizeEstimatedBytes(timeoutCtx, config.WatermarkTable); connErr == nil {
523523
if bytes > 1<<40 { // 1 TiB
524-
msg := fmt.Sprintf("Large table detected: %s (%s). Partitioning query may take several hours to execute. "+
524+
msg := fmt.Sprintf("large table detected: %s (%s). Partitioning query may take several hours to execute. "+
525525
"This is normal for tables over 1 TiB.", config.WatermarkTable, utils.FormatTableSize(bytes))
526526
a.Alerter.LogFlowInfo(ctx, config.FlowJobName, msg)
527527
}
528+
} else {
529+
logger.Warn("failed to get estimated table size", slog.Any("error", connErr))
528530
}
529531
}
530532

0 commit comments

Comments
 (0)