Skip to content

Commit 8f146ba

Browse files
authored
Merge pull request #150531 from cockroachdb/blathers/backport-release-25.3-150110
release-25.3: crosscluster/physical: fix status after init scan complete
2 parents 5f0fe2d + d06c2f7 commit 8f146ba

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

pkg/crosscluster/physical/stream_ingestion_frontier_processor.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,7 @@ func (sf *streamIngestionFrontier) maybeUpdateProgress() error {
341341

342342
if replicatedTime.IsSet() && streamProgress.ReplicationStatus == jobspb.InitialScan {
343343
streamProgress.ReplicationStatus = jobspb.Replicating
344+
md.Progress.StatusMessage = streamProgress.ReplicationStatus.String()
344345
}
345346

346347
// Keep the recorded replicatedTime empty until some advancement has been made

pkg/crosscluster/replicationtestutils/testutils.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,10 @@ func WaitUntilStartTimeReached(t *testing.T, db *sqlutils.SQLRunner, ingestionJo
601601

602602
return requireReplicatedTime(startTime, jobutils.GetJobProgress(t, db, ingestionJobID))
603603
}, timeout)
604+
605+
var runningStatus string
606+
db.QueryRow(t, "SELECT running_status FROM [SHOW JOB $1]", ingestionJobID).Scan(&runningStatus)
607+
require.Equal(t, "replicating", runningStatus, "job should be in replicating state after reaching start time")
604608
}
605609

606610
func WaitUntilReplicatedTime(

0 commit comments

Comments
 (0)