I attempted to fix these issues in this draft PR, but the flow control here is complicated, and I haven’t fully read the resource management code in kvclient, so I’m not confident in my understanding. The effort required to gain the necessary confidence seems too high at this point to push the PR over the finish line, so I’m filing an issue instead.
Describe the problem
This double counting happens every time when a rangefeed restart happens which could be often.
startNodeMuxRangeFeed
returns an error iiuc. Not sure if resources are properly releasing after shutdown. Still reading more.I attempted to fix these issues in this draft PR, but the flow control here is complicated, and I haven’t fully read the resource management code in kvclient, so I’m not confident in my understanding. The effort required to gain the necessary confidence seems too high at this point to push the PR over the finish line, so I’m filing an issue instead.
Jira issue: CRDB-41566
Epic CRDB-39959