pingcap / tidb

TiDB is an open-source, cloud-native, distributed, MySQL-Compatible database for elastic scale and real-time analytics. Try AI-powered Chat2Query free at : https://www.pingcap.com/tidb-serverless/
https://pingcap.com
Apache License 2.0
37k stars 5.82k forks source link

slow test `TestTableTimerStore` in `pkg/timer` pkg #50792

Open wuhuizuo opened 8 months ago

wuhuizuo commented 8 months ago

Bug Report

Average timecost was 140030.0000ms between TIMESTAMP("2024-01-08") AND TIMESTAMP("2024-01-30")

Found records: 1 (filter only for runs that timecost >= threshold) Max timecost: 140030ms Min timecost: 140030ms Avg timecost: 140030.0000ms - [CI build](https://do.pingcap.net/jenkins/job/pingcap/job/tidb/job/ghpr_unit_test/1175/): used 140030ms
lcwangchao commented 8 months ago

It run this test in local but finished very fast. From log log in remote machine, seems the io is very slow:

    logger.go:130: 2024-01-08T09:36:05.770Z WARN    m0  slow fdatasync  {"member": "m0", "took": "6.147123475s", "expected-duration": "1s"}