Skip to content

Commit

Permalink
manually correct subsource status from starting to running
Browse files Browse the repository at this point in the history
Subsources move from starting to running lazily once they see
a record flow through, even though they are online and healthy.
This has been repeatedly brought up as confusing by users.
So now, if the parent source is running, and the subsource is
starting, we override its status to running to relfect its healthy
status.
  • Loading branch information
sjwiesman committed Jan 17, 2025
1 parent 5a6a838 commit d5b8e5e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/catalog/src/builtin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3243,6 +3243,16 @@ pub static MZ_SOURCE_STATUSES: LazyLock<BuiltinView> = LazyLock::new(|| BuiltinV
self_events.status <> 'ceased' AND
parent_events.status = 'stalled'
THEN parent_events.source_id
-- Subsources move from starting to running lazily once they see
-- a record flow through, even though they are online and healthy.
-- This has been repeatedly brought up as confusing by users.
-- So now, if the parent source is running, and the subsource is
-- starting, we override its status to running to relfect its healthy
-- status.
WHEN
self_events.status = 'starting' AND
parent_events.status = 'running'
THEN parent_events.source_id
ELSE self_events.source_id
END AS id_to_use
FROM
Expand Down

0 comments on commit d5b8e5e

Please sign in to comment.