8000 kvclient/rangefeed: clients must handle internal errors · Issue #75610 · cockroachdb/cockroach · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
kvclient/rangefeed: clients must handle internal errors #75610
Open
@erikgrinaker

Description

@erikgrinaker

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. The current error conditions are:

  • roachpb.BatchTimestampBeforeGCError: the rangefeed sent a batch request below the GC threshold.
  • roachpb.MVCCHistoryMutationError: MVCC history was mutated by e.g. AddSSTable, ClearRange, or RevertRange.

Callers should add a callback using WithOnInternalError and handle these errors appropriately (as well as any future error conditions that may be added). Relevant callers include:

CC @cockroachdb/sql-schema @irfansharif

Jira issue: CRDB-12744

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-kvAnything in KV that doesn't belong in a more specific category.A-schema-descriptorsRelating to SQL table/db descriptor handling.C-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.E-quick-winLikely to be a quick win for someone experienced.T-sql-foundationsSQL Foundations Team (formerly SQL Schema + SQL Sessions)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0