cdcpb: add CDC scan priority#1493
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Signed-off-by: hongyunyan <649330952@qq.com>
|
|
Signed-off-by: hongyunyan <649330952@qq.com>
Signed-off-by: hongyunyan <649330952@qq.com>
Background
TiCDC needs to tell downstream CDC services whether an initial scan belongs to a newly created changefeed or to an existing changefeed repair path.
Motivation
Without an explicit priority in
ChangeDataRequest, downstream services cannot distinguish low-priority bootstrap scans from high-priority scans that protect existing changefeed lag.Summary
ScanPrioritytocdcpb.ChangeDataRequest.scan_priority.ChangeDataRequest.changefeed_idfor debugging and observability.Validation
make checkmake proto-fmtmake gogo test ./pkg/cdcpb