unstable test BackgroundProcessingPoolTest.FixedInterval
Open
Nobody has claimed this yet.
component/storage
severity/moderate
type/bug
- Dominant language
- C++
- Stars
- 1k
- Forks
- 423
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 24
Description
Bug Report
[2024-01-02T04:44:52.349Z] [0;33mNote: Google Test filter = BackgroundProcessingPoolTest.FixedInterval
[2024-01-02T04:44:52.349Z] [m[0;32m[==========] [mRunning 1 test from 1 test case.
[2024-01-02T04:44:52.349Z] [0;32m[----------] [mGlobal test environment set-up.
[2024-01-02T04:44:52.349Z] [0;32m[----------] [m1 test from BackgroundProcessingPoolTest
[2024-01-02T04:44:52.349Z] [0;32m[ RUN ] [mBackgroundProcessingPoolTest.FixedInterval
[2024-01-02T04:44:52.349Z] [2024/01/02 12:44:39.644 +08:00] [INFO] [BackgroundProcessingPool.cpp:90] ["Create BackgroundProcessingPool, prefix=test n_threads=10"] [thread_id=1]
[2024-01-02T04:44:52.349Z] [2024/01/02 12:44:50.639 +08:00] [INFO] [gtest_bkg_pool.cpp:75] ["actual being called for 3 times, min_diff=2805 max_diff=5966"] [thread_id=1]
[2024-01-02T04:44:52.349Z] /home/jenkins/agent/workspace/tiflash-build-common/tiflash/dbms/src/Storages/tests/gtest_bkg_pool.cpp:76: Failure
[2024-01-02T04:44:52.349Z] Value of: num_expect_called - 1 <= num_actual_called && num_actual_called <= num_expect_called + 1
[2024-01-02T04:44:52.349Z] Actual: false
[2024-01-02T04:44:52.349Z] Expected: true
[2024-01-02T04:44:52.349Z] actual_called=3 min_diff_ms=2805
[2024-01-02T04:44:52.349Z] [0;31m[ FAILED ] [mBackgroundProcessingPoolTest.FixedInterval (10998 ms)
[2024-01-02T04:44:52.349Z] [0;32m[----------] [m1 test from BackgroundProcessingPoolTest (10998 ms total)
[2024-01-02T04:44:52.349Z]
[2024-01-02T04:44:52.349Z] [0;32m[----------] [mGlobal test environment tear-down
[2024-01-02T04:44:52.349Z] [0;32m[==========] [m1 test from 1 test case ran. (10998 ms total)
[2024-01-02T04:44:52.349Z] [0;32m[ PASSED ] [m0 tests.
[2024-01-02T04:44:52.349Z] [0;31m[ FAILED ] [m1 test, listed below:
[2024-01-02T04:44:52.349Z] [0;31m[ FAILED ] [mBackgroundProcessingPoolTest.FixedInterval
[2024-01-02T04:44:52.349Z]
[2024-01-02T04:44:52.349Z] 1 FAILED TEST
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with dbms/src/Storages/tests/gtest_bkg_pool.cpp, especially BackgroundProcessingPoolTest.FixedInterval and the failure at line 76. Reproduce it with the Google Test filter from the CI report, then investigate the timing variation; done means the test no longer fails intermittently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100