changefeedccl: add observability into kvfeed restarts #124635
Labels
A-cdc
Change Data Capture
branch-release-23.1
Used to mark GA and release blockers, technical advisories, and bugs for 23.1
branch-release-23.2
Used to mark GA and release blockers, technical advisories, and bugs for 23.2
branch-release-24.1
Used to mark GA and release blockers, technical advisories, and bugs for 24.1
branch-release-24.2
Used to mark GA and release blockers, technical advisories, and bugs for 24.2
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
O-support
Would prevent or help troubleshoot a customer escalation - bugs, missing observability/tooling, docs
P-2
Issues/test failures with a fix SLA of 3 months
T-cdc
This code in
(*kvfeed.kvFeed).run
surrounding restarts due to schema changes does not have any observability in the form of either logs or metrics:cockroach/pkg/ccl/changefeedccl/kvfeed/kv_feed.go
Lines 331 to 408 in df19639
One possible thing we could do is log a message right before the loop restarts explaining why the kvfeed is not exiting and/or why it needed to stop in the first place. We could also maybe have a metric counting the number of kvfeed restarts (possibly broken down by reason).
This would've been useful while investigating https://github.com/cockroachlabs/support/issues/2958.
Jira issue: CRDB-38982
Epic CRDB-37337
The text was updated successfully, but these errors were encountered: