Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

manually correct subsource status from starting to running #31096

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/catalog/src/builtin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3243,6 +3243,17 @@ pub static MZ_SOURCE_STATUSES: LazyLock<BuiltinView> = LazyLock::new(|| BuiltinV
self_events.status <> 'ceased' AND
parent_events.status = 'stalled'
THEN parent_events.source_id
-- TODO: Remove this once subsources eagerly propogate their status
-- 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
Loading