Skip to content

adapter: introduce internal-only subscribes#36845

Merged
aljoscha merged 1 commit into
MaterializeInc:mainfrom
aljoscha:push-ttzykvoolxvv
Jun 3, 2026
Merged

adapter: introduce internal-only subscribes#36845
aljoscha merged 1 commit into
MaterializeInc:mainfrom
aljoscha:push-ttzykvoolxvv

Conversation

@aljoscha
Copy link
Copy Markdown
Contributor

@aljoscha aljoscha commented Jun 1, 2026

Add an internal: bool field on ActiveSubscribe so that callers can mark a subscribe as system-internal. Internal subscribes are not advertised via mz_subscriptions (no row write/retract on set up or tear down).

The existing user-facing call site in sequence_subscribe sets the flag to false, preserving today's behavior.

Also demote the "drop_compute_sinks called on nonexistent sink" log from error! to debug!: an internal subscribe may be torn down through its own path while session-disconnect cleanup is in flight, and that race is benign.

This is preparation for the upcoming frontend OCC read-then-write path, which uses a long-lived internal SUBSCRIBE to maintain accumulated diffs.

Work towards https://github.com/MaterializeInc/database-issues/issues/6686

Add an `internal: bool` field on `ActiveSubscribe` so that callers can
mark a subscribe as system-internal. Internal subscribes are not
advertised via `mz_subscriptions` (no row write/retract on set up or
tear down).

The existing user-facing call site in `sequence_subscribe` sets the flag
to `false`, preserving today's behavior.

Also demote the "drop_compute_sinks called on nonexistent sink" log
from `error!` to `debug!`: an internal subscribe may be torn down
through its own path while session-disconnect cleanup is in flight,
and that race is benign.

This is preparation for the upcoming frontend OCC read-then-write path,
which uses a long-lived internal SUBSCRIBE to maintain accumulated
diffs.

Work towards MaterializeInc/database-issues#6686
@aljoscha aljoscha requested review from a team as code owners June 1, 2026 12:43
@aljoscha
Copy link
Copy Markdown
Contributor Author

aljoscha commented Jun 3, 2026

tyty, as always! 🙇‍♂️

@aljoscha aljoscha merged commit 8c16a83 into MaterializeInc:main Jun 3, 2026
118 checks passed
@aljoscha aljoscha deleted the push-ttzykvoolxvv branch June 3, 2026 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants