matrixorigin / matrixone

Hyperconverged cloud-edge native database
https://docs.matrixorigin.cn/en
Apache License 2.0
1.77k stars 275 forks source link

[Bug]: UT TestCollector failed #19163

Open zengyan1 opened 1 day ago

zengyan1 commented 1 day ago

Is there an existing issue for the same bug?

Branch Name

main

Commit ID

7b83c519f011009eb70359f0629441e9234ce76e

Other Environment Information

- Hardware parameters:
- OS type:
- Others:

Actual Behavior

2024-10-08T11:31:19.2186439Z | Failed UT Packages | 2024-10-08T11:31:19.2196578Z +------------------------------------------------------------+----------------------+----------------------+--------+---------+ 2024-10-08T11:31:19.2230347Z | PACKAGE | START_TIME | END_TIME | RESULT | ELAPSED | 2024-10-08T11:31:19.2234136Z +------------------------------------------------------------+----------------------+----------------------+--------+---------+ 2024-10-08T11:31:19.2239243Z | github.com/matrixorigin/matrixone/pkg/util/metric/mometric | 2024-10-08T11:10:15Z | 2024-10-08T11:10:36Z | fail | 21.21 | 2024-10-08T11:31:19.2245433Z +------------------------------------------------------------+----------------------+----------------------+--------+---------+ 2024-10-08T11:31:19.2248676Z ============================================ 2024-10-08T11:31:19.2251348Z [TEST]: TestCollector 2024-10-08T11:31:19.2254302Z [START_AT]: 2024-10-08T11:10:15Z 2024-10-08T11:31:19.2256957Z [END_AT]: 2024-10-08T11:10:15Z 2024-10-08T11:31:19.2257435Z [RESULT]: fail 2024-10-08T11:31:19.2259998Z [ELAPSED]: 0.20 2024-10-08T11:31:19.2262489Z [OUTPUTS]: 2024-10-08T11:31:19.2265378Z === RUN TestCollector 2024-10-08T11:31:19.2268789Z metric_collector_test.go:85: runtime.NumCPU: 4 2024-10-08T11:31:19.2271729Z metric_collector_test.go:143: m2 should be flushed after a period 2024-10-08T11:31:19.2274671Z --- FAIL: TestCollector (0.20s)

Expected Behavior

No response

Steps to Reproduce

https://github.com/matrixorigin/matrixone/actions/runs/11232873452/job/31228596380?pr=19160

Additional information

No response

xzxiong commented 21 hours ago

logs_29344942492.zip

异常:ut 在 200ms 刷一次数据,这里检查到 实际的间隔 < 200ms image

xzxiong commented 20 hours ago

simular case: https://github.com/matrixorigin/matrixone/issues/9259