-
Couldn't load subscription status.
- Fork 4k
Open
Labels
A-kvAnything in KV that doesn't belong in a more specific category.Anything in KV that doesn't belong in a more specific category.A-schema-descriptorsRelating to SQL table/db descriptor handling.Relating to SQL table/db descriptor handling.C-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.Code 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.Likely to be a quick win for someone experienced.T-sql-foundationsSQL Foundations Team (formerly SQL Schema + SQL Sessions)SQL Foundations Team (formerly SQL Schema + SQL Sessions)
Description
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, orRevertRange.
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:
- SQL descriptor watcher
- SQL zone watcher
- SQL lease watcher
- SQL stats cache watcher
- Settings watcher
- Span config subscriber
CC @cockroachdb/sql-schema @irfansharif
Jira issue: CRDB-12744
irfansharif and ajwerner
Metadata
Metadata
Assignees
Labels
A-kvAnything in KV that doesn't belong in a more specific category.Anything in KV that doesn't belong in a more specific category.A-schema-descriptorsRelating to SQL table/db descriptor handling.Relating to SQL table/db descriptor handling.C-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.Code 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.Likely to be a quick win for someone experienced.T-sql-foundationsSQL Foundations Team (formerly SQL Schema + SQL Sessions)SQL Foundations Team (formerly SQL Schema + SQL Sessions)