cockroach icon indicating copy to clipboard operation
cockroach copied to clipboard

changefeedccl: restart the flow when too many ChangeAggregator processors are no longer scheduled on leaseholders

Open danhhz opened this issue 8 years ago • 4 comments

We schedule the changefeed flow such that every ChangeAggregator is on the leaseholder for the range it's responsible for. But ranges can split, merge, and rebalance and there's no way to update the running flow to move them around. In some future world, perhaps we'll do #28674, which would be a real solution for this. In the meantime, we should monitor how many leaseholders are no longer scheduled local to the ChangeAggregators and restart the flow.

Jira issue: CRDB-4803

danhhz avatar Oct 10 '18 17:10 danhhz

This is not going to make 2.2. The manual workaround of periodically pausing and unpausing the changefeed will have to do for now.

danhhz avatar Jan 28 '19 23:01 danhhz

Since 19.2 rangefeeds are used and so leaseholders don't really matter because a rangefeed can use any replica. However, the problem of entropy sneaking in remains an issue.

ajwerner avatar Feb 10 '21 15:02 ajwerner

@ajwerner what do you mean by entropy sneaking in?

amruss avatar Feb 21 '21 17:02 amruss

We have a mechanism for this in place.

miretskiy avatar Jan 09 '23 15:01 miretskiy