pingcap / pingcap/tiflash

unstable test BackgroundProcessingPoolTest.FixedInterval

Open
#8,635 0 comments 0 reactions 0 assignees View on GitHub

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

https://ci.pingcap.net/blue/organizations/jenkins/tiflash-ghpr-unit-tests/detail/tiflash-ghpr-unit-tests/12427/pipeline/

[2024-01-02T04:44:52.349Z] Note: Google Test filter = BackgroundProcessingPoolTest.FixedInterval
[2024-01-02T04:44:52.349Z] [==========] Running 1 test from 1 test case.
[2024-01-02T04:44:52.349Z] [----------] Global test environment set-up.
[2024-01-02T04:44:52.349Z] [----------] 1 test from BackgroundProcessingPoolTest
[2024-01-02T04:44:52.349Z] [ RUN      ] BackgroundProcessingPoolTest.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] [  FAILED  ] BackgroundProcessingPoolTest.FixedInterval (10998 ms)
[2024-01-02T04:44:52.349Z] [----------] 1 test from BackgroundProcessingPoolTest (10998 ms total)
[2024-01-02T04:44:52.349Z] 
[2024-01-02T04:44:52.349Z] [----------] Global test environment tear-down
[2024-01-02T04:44:52.349Z] [==========] 1 test from 1 test case ran. (10998 ms total)
[2024-01-02T04:44:52.349Z] [  PASSED  ] 0 tests.
[2024-01-02T04:44:52.349Z] [  FAILED  ] 1 test, listed below:
[2024-01-02T04:44:52.349Z] [  FAILED  ] BackgroundProcessingPoolTest.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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.