cockroachdb / cockroachdb/cockroach
cdc: complete checkpoint even if unable to update pts record
- 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
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