8000 sqlliveness: sql instance watcher should handle rangefeed errors · Issue #145356 · cockroachdb/cockroach · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
sqlliveness: sql instance watcher should handle rangefeed errors #145356
Open
@rimadeodhar

Description

@rimadeodhar

The sql instance watcher relies on rangefeeds to update its internal cache of live sql instances. Rangefeed clients based on kvclient/rangefeed.Factory must explicitly set an OnInternalError handler to be notified of internal errors. Otherwise, when one of these errors are encountered the rangefeed will silently stop emitting events. This can cause the sql instance cache to get stale leading to the system believe certain instances are alive and accessible after they have already been shut down.

This issue tracks the work to update the sql instance watcher to ensure we handle such errors gracefully and prevent the cache from getting stale. This is a subset of the work identified in #75610.

Jira issue: CRDB-49869

Epic CRDB-50448

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)O-postmortemOriginated from a Postmortem action item.P-2Issues/test failures with a fix SLA of 3 monthsT-db-server

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0