Skip to content

[Bug]: [nightly regression] sysbench write workloads regress with CN logtail consumer backlog #24322

Closed

Description

@LeftHandCold

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Branch Name

3.0-dev

Commit ID

6a0394c

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_10000000

Actual Behavior

job: https://github.com/matrixorigin/mo-nightly-regression/actions/runs/25384997392/job/74495673820

bad log window: https://grafana.ci.matrixorigin.cn/explore?panes=%7B%22pane%22%3A%7B%22datasource%22%3A%22loki%22%2C%22queries%22%3A%5B%7B%22refId%22%3A%22A%22%2C%22expr%22%3A%22%7Bnamespace%3D%5C%22mo-branch-commit-6a0394c4f-20260505%5C%22%7D%20%7C~%20%60logtail%5C%5C.consumer%5C%5C.slow%7Ctxn%20need%20retry%20in%20rc%20mode%7CPrimaryKeysMayBeModified%7CTxnNoConflict%7CTxnConflict%7CWaitLogTailAppliedAt%7CWORKSPACE-QUOTA%7Clock%20wait%7Cwait%20lock%7Cconflict%7Cslow%60%22%2C%22queryType%22%3A%22range%22%2C%22datasource%22%3A%7B%22type%22%3A%22loki%22%2C%22uid%22%3A%22loki%22%7D%2C%22editorMode%22%3A%22builder%22%7D%5D%2C%22range%22%3A%7B%22from%22%3A%221778016376000%22%2C%22to%22%3A%221778016706000%22%7D%7D%7D&schemaVersion=1&orgId=1

good control log window: https://grafana.ci.matrixorigin.cn/explore?panes=%7B%22pane%22%3A%7B%22datasource%22%3A%22loki%22%2C%22queries%22%3A%5B%7B%22refId%22%3A%22A%22%2C%22expr%22%3A%22%7Bnamespace%3D%5C%22mo-branch-commit-6a0394c4f-20260504%5C%22%7D%20%7C~%20%60logtail%5C%5C.consumer%5C%5C.slow%7Ctxn%20need%20retry%20in%20rc%20mode%7CPrimaryKeysMayBeModified%7CTxnNoConflict%7CTxnConflict%7CWaitLogTailAppliedAt%7CWORKSPACE-QUOTA%7Clock%20wait%7Cwait%20lock%7Cconflict%7Cslow%60%22%2C%22queryType%22%3A%22range%22%2C%22datasource%22%3A%7B%22type%22%3A%22loki%22%2C%22uid%22%3A%22loki%22%7D%2C%22editorMode%22%3A%22builder%22%7D%5D%2C%22range%22%3A%7B%22from%22%3A%221777929990000%22%2C%22to%22%3A%221777930310000%22%7D%7D%7D&schemaVersion=1&orgId=1

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:47

sysbench_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 / 6337

In 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_10000000

Additional 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

  1. LeftHandCold commented on May 9, 2026

    @LeftHandCold
    CollaboratorAuthor

    修复 PR:#24323(target: 3.0-dev)

  2. changed the title [-]CN logtail consumer backlog causes sysbench write regression[/-] [+][Bug]: [nightly regression] sysbench write workloads regress with CN logtail consumer backlog[/+] on May 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions