Repository navigation
Description
Is there an existing issue for the same bug?
- I have checked the existing issues.
Branch Name
3.0-dev
Commit ID
Other Environment Information
- Workload: nightly regression sysbench 1000W, vuser=1000
- Namespace: mo-branch-commit-6a0394c4f-20260505
- Component: CN logtail push consumer / timestamp waiter
- Affected cases: sysbench_update_pk_10_10000000, sysbench_read_write_10_10000000, sysbench_write_only_10_10000000, sysbench_update_non_index_10_10000000Actual Behavior
sysbench_read_write_10_10000000, vuser=1000 regressed on 2026-05-05:
This time: tps = 867, datetime = 2026-05-05 21:06:02
Last time: tps = 1402, datetime = 2026-05-04 21:06:47sysbench_update_pk_10_10000000, vuser=1000 also stayed lower than normal:
This time: tps = 4970, datetime = 2026-05-05 21:26:05
Last two times: 6023 / 6337In the bad update_pk window, CN logs show logtail.consumer.slow.* on one consumer routine, with signal-chan-len around 7373~7738. The good control run with the same image tag has no logtail.consumer.slow.* in the same case window.
No clear evidence was found for sysbench reconnect/retry storm, workspace quota shortage, or UPDATE table-lock upgrade causing this regression.
Expected Behavior
High-concurrency sysbench write workloads should not be throttled by local CN logtail consumer backlog. Logtail applied timestamp notification should not block the logtail consumer when the notification channel is full.
Steps to Reproduce
trigger nightly regression sysbench 1000W write-heavy workloads with vuser=1000, especially:
- sysbench_read_write_10_10000000
- sysbench_update_pk_10_10000000
- sysbench_write_only_10_10000000
- sysbench_update_non_index_10_10000000Additional information
Root cause is likely local CN logtail consumer backpressure:
- update response logtails are distributed by tableID % consumerNumber
- each update response also sends timestamp-only commands to every routine
- a hot routine can build a large signalChan backlog
- timestamp waiter notification used a blocking channel, which can further backpressure the logtail consumer
Activity
LeftHandCold commentedon May 9, 2026
修复 PR:#24323(target: 3.0-dev)
[-]CN logtail consumer backlog causes sysbench write regression[/-][+][Bug]: [nightly regression] sysbench write workloads regress with CN logtail consumer backlog[/+]