-
Notifications
You must be signed in to change notification settings - Fork 4k
Closed
Labels
A-cdcChange Data CaptureChange Data CaptureC-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)T-cdctarget-release-25.4.0
Description
The following convenience methods would be nice:
-
GetResolvedSpans(ctx context.Context, txn isql.Txn, jobID jobspb.JobID, name string) (jobspb.ResolvedSpans, bool, error)
: likeGet
, except it returns the actual resolved spans so that callers have the flexibility for whether they want to immediately put them in a frontier -
GetAllResolvedSpans(ctx context.Context, txn isql.Txn, jobID jobspb.JobID) (jobspb.ResolvedSpans, bool, error)
: likeGetResolvedSpans
, except it returns the resolved spans for all frontiers for a job, which is useful for jobs that persist multiple frontiers (e.g. CDC per-table frontiers)- (alternative signature)
GetAllResolvedSpans(ctx context.Context, txn isql.Txn, jobID jobspb.JobID) (map[string]jobspb.ResolvedSpans, bool, error)
: returns a map from name to resolved spans for a job
- (alternative signature)
Jira issue: CRDB-54177
Metadata
Metadata
Assignees
Labels
A-cdcChange Data CaptureChange Data CaptureC-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)T-cdctarget-release-25.4.0