cockroachdb / cockroachdb/cockroach

cdc: complete checkpoint even if unable to update pts record

Open
#131,800 1 comment 0 reactions 0 assignees View on GitHub
A-cdc C-enhancement T-cdc
Dominant language
Go
Stars
32.5k
Forks
4.1k
PR merge metrics
PR metrics pending

Description

In `changeFrontier.checkpointJobProgress` if `manageProtectedTimestamps` fails (e.g., with a TransactionRetryWithProtoRefreshError: WriteTooOldError), we could still write a checkpoint and emit a resolved timestamp, allowing the changefeed to continue making forward progress for the user.

Jira issue: CRDB-42702

Contributor guide

Open the contributing guide

Research direction

Start at changeFrontier.checkpointJobProgress and trace how manageProtectedTimestamps errors are handled before checkpoint and resolved-timestamp emission. Examine the TransactionRetryWithProtoRefreshError/WriteTooOldError path; done means the changefeed can still write a checkpoint, emit a resolved timestamp, and make forward progress when the PTS update fails.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
databases, distributed-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.