logSink.units does not flush regularly #2424
Labels
area/ticdc
Issues or PRs related to TiCDC.
component/pitr
Point-in-time recovery component.
severity/major
type/bug
The issue is confirmed as a bug.
Bug Report
look 1259
https://github.com/pingcap/ticdc/blob/04e028419387871b80ddc95377751092f03f26ae/cdc/sink/cdclog/utils.go#L124-L139
There is a ticker to flush
logSink.units
every 500 ms, but why 1259 did not flushlogSink.units
?So, I add a log, like this
I created a s3 sink changefeed:
insert data by sysbench
I got this:
https://github.com/pingcap/ticdc/blob/04e028419387871b80ddc95377751092f03f26ae/cdc/sink/cdclog/s3.go#L80-L82
unit.size < 5MB
, soshouldFlush
return false, but utils.dataCh chennal is full, so changefeed is bloked.Please answer these questions before submitting your issue. Thanks!
Versions of the cluster
Upstream TiDB cluster version (execute
SELECT tidb_version();
in a MySQL client):TiCDC version (execute
cdc version
):The text was updated successfully, but these errors were encountered: