Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Add tests case when deltaMergeBySplit + { flushCache | split } occurs simultaneously #5454

Merged
merged 14 commits into from
Jul 27, 2022

Conversation

breezewish
Copy link
Member

@breezewish breezewish commented Jul 23, 2022

What problem does this PR solve?

Issue Number: ref #5409

Problem Summary: For now we lack some tests to test the behavior when multiple operations occurred at the same time.

What is changed and how it works?

  1. Introduced a new facility called SyncPoint, which can be used to control the arbitrary business logical flow to suspend and continue.

  2. Added or modified existing ManualCompaction tests based on the new SyncPoint:

    • Modified: BasicManualCompactTest/DuplicatedLogicalId

      Previously this test uses sleep(500ms) to expect specific code logic is finished. Now this sleep is substituted with SyncPoint, so that expected code logic is always finished and the test can continue without waiting for useless time.

    • Added: DeltaMergeStoreMergeDeltaBySegmentTest/RetryByFlushCache

    • Added: DeltaMergeStoreMergeDeltaBySegmentTest/RetryBySplit

      The two new cases above tests whether everything works fine when there are mergeDeltaBySplit and flushCache (or split) happening simultaneously, based on the SyncPoint.

  3. Added more guards in gtest_main:

    • Failures are now turned into exceptions by default, so that when writing ASSERT in sub-functions it will break the test immediately. This is particularly useful in SyncPoint tests, as when there are failures in previous sync point steps, it is very likely that the rest step will not work as expected, result in infinite wait. By turning into exceptions, we these test cases fail fast.

    • Added stack output when the program is unexpected terminated in fault signals like SIG_ABORT (and also std::terminate). This helps locate the code of triggering these faults.

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Side effects

  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Breaking backward compatibility

Documentation

  • Affects user behaviors
  • Contains syntax changes
  • Contains variable changes
  • Contains experimental features
  • Changes MySQL compatibility

Release note

None

@ti-chi-bot
Copy link
Member

ti-chi-bot commented Jul 23, 2022

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • JaySon-Huang
  • Lloyd-Pottiger

To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer in the comment.
After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer in the comment to help you merge this pull request.

The full list of commands accepted by this bot can be found here.

Reviewer can indicate their review by submitting an approval review.
Reviewer can cancel approval by submitting a request changes review.

@ti-chi-bot ti-chi-bot added release-note-none Denotes a PR that doesn't merit a release note. needs-cherry-pick-release-5.4 Should cherry pick this PR to release-5.4 branch. needs-cherry-pick-release-6.1 Should cherry pick this PR to release-6.1 branch. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Jul 23, 2022
@breezewish breezewish removed the needs-cherry-pick-release-5.4 Should cherry pick this PR to release-5.4 branch. label Jul 23, 2022
@ti-chi-bot ti-chi-bot added the needs-cherry-pick-release-5.4 Should cherry pick this PR to release-5.4 branch. label Jul 23, 2022
@sre-bot
Copy link
Collaborator

sre-bot commented Jul 23, 2022

Coverage for changed files

Filename                                                     Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Common/FailPoint.cpp                                             593               230    61.21%           8                 2    75.00%          84                36    57.14%         202               112    44.55%
Common/SyncPoint/Ctl.cpp                                         131                31    76.34%           6                 0   100.00%          59                 4    93.22%          58                32    44.83%
Common/SyncPoint/Ctl.h                                             1                 0   100.00%           1                 0   100.00%           4                 0   100.00%           0                 0         -
Common/SyncPoint/Seq.h                                            12                 1    91.67%           5                 0   100.00%          22                 1    95.45%           6                 1    83.33%
Common/SyncPoint/SeqOp.h                                          17                 0   100.00%          15                 0   100.00%          33                 0   100.00%           2                 1    50.00%
Common/SyncPoint/SyncChannel.h                                    22                 4    81.82%           8                 0   100.00%          81                 2    97.53%          16                 8    50.00%
Flash/Management/ManualCompact.cpp                               134                54    59.70%           9                 0   100.00%         166                23    86.14%          66                32    51.52%
Flash/Management/tests/gtest_manual_compact.cpp                 1205               612    49.21%          19                 0   100.00%         281                 3    98.93%         264               142    46.21%
Storages/DeltaMerge/Delta/ColumnFileFlushTask.cpp                 38                 3    92.11%           3                 0   100.00%          60                 6    90.00%          22                 3    86.36%
Storages/DeltaMerge/DeltaMergeStore.cpp                         1500               537    64.20%          67                 5    92.54%        2132               520    75.61%         880               411    53.30%
Storages/DeltaMerge/Segment.cpp                                  695               210    69.78%          47                 3    93.62%        1170               263    77.52%         368               192    47.83%
Storages/DeltaMerge/tests/MultiSegmentTestUtil.h                 310                77    75.16%           6                 0   100.00%          86                 0   100.00%          84                39    53.57%
Storages/DeltaMerge/tests/gtest_dm_delta_merge_store.cpp        8322              2991    64.06%          56                 1    98.21%        3316               107    96.77%        2364              1075    54.53%
TestUtils/TiFlashTestBasic.h                                       4                 0   100.00%           2                 0   100.00%          12                 0   100.00%           2                 0   100.00%
TestUtils/gtests_dbms_main.cpp                                     7                 4    42.86%           4                 2    50.00%          36                12    66.67%           4                 2    50.00%

Files which contain no functions:
Common/SyncPoint/SyncPoint.h                                       0                 0         -           0                 0         -           0                 0         -           0                 0         -
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                          12991              4754    63.41%         256                13    94.92%        7542               977    87.05%        4338              2050    52.74%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18855      9453             49.86%    214646  95523        55.50%

full coverage report (for internal network access only)

@breezewish
Copy link
Member Author

/run-all-tests

Copy link
Contributor

@Lloyd-Pottiger Lloyd-Pottiger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ti-chi-bot ti-chi-bot added the status/LGT1 Indicates that a PR has LGTM 1. label Jul 25, 2022
@breezewish
Copy link
Member Author

/run-all-tests

@sre-bot
Copy link
Collaborator

sre-bot commented Jul 25, 2022

Coverage for changed files

Filename                                                     Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Common/FailPoint.cpp                                             593               230    61.21%           8                 2    75.00%          84                36    57.14%         202               112    44.55%
Common/SyncPoint/Ctl.cpp                                         132                31    76.52%           7                 0   100.00%          62                 4    93.55%          58                33    43.10%
Common/SyncPoint/Ctl.h                                             2                 0   100.00%           2                 0   100.00%           8                 0   100.00%           0                 0         -
Common/SyncPoint/ScopeGuard.cpp                                    8                 1    87.50%           5                 0   100.00%          18                 1    94.44%           2                 1    50.00%
Common/SyncPoint/ScopeGuard.h                                      1                 0   100.00%           1                 0   100.00%           3                 0   100.00%           0                 0         -
Common/SyncPoint/SyncChannel.h                                    22                 4    81.82%           8                 0   100.00%          81                 2    97.53%          16                 8    50.00%
Flash/Management/ManualCompact.cpp                               134                54    59.70%           9                 0   100.00%         166                23    86.14%          66                32    51.52%
Flash/Management/tests/gtest_manual_compact.cpp                 1202               612    49.08%          16                 0   100.00%         245                 4    98.37%         264               141    46.59%
Storages/DeltaMerge/Delta/ColumnFileFlushTask.cpp                 38                 3    92.11%           3                 0   100.00%          60                 6    90.00%          22                 3    86.36%
Storages/DeltaMerge/DeltaMergeStore.cpp                         1500               537    64.20%          67                 5    92.54%        2132               520    75.61%         880               409    53.52%
Storages/DeltaMerge/Segment.cpp                                  695               210    69.78%          47                 3    93.62%        1170               263    77.52%         368               192    47.83%
Storages/DeltaMerge/tests/MultiSegmentTestUtil.h                 310                77    75.16%           6                 0   100.00%          86                 0   100.00%          84                39    53.57%
Storages/DeltaMerge/tests/gtest_dm_delta_merge_store.cpp        8314              2991    64.02%          48                 1    97.92%        3228               107    96.69%        2364              1075    54.53%
TestUtils/TiFlashTestBasic.h                                       4                 0   100.00%           2                 0   100.00%          12                 0   100.00%           2                 0   100.00%
TestUtils/gtests_dbms_main.cpp                                     7                 4    42.86%           4                 2    50.00%          36                12    66.67%           4                 2    50.00%

Files which contain no functions:
Common/SyncPoint/SyncPoint.h                                       0                 0         -           0                 0         -           0                 0         -           0                 0         -
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                          12962              4754    63.32%         233                13    94.42%        7391               978    86.77%        4332              2047    52.75%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18832      9451             49.81%    214504  95522        55.47%

full coverage report (for internal network access only)

@breezewish
Copy link
Member Author

breezewish commented Jul 26, 2022

@JaySon-Huang Thanks for the recommendation! I have made updates. Here are the results:

When throwing a std::exception:

[2022/07/26 14:39:18.803 +08:00] [ERROR] [Exception.cpp:85] ["virtual void DB::DM::tests::DeltaMergeStoreMergeDeltaBySegmentTest_RetryBySplit_Test::TestBody():std::exception. Code: 1001, type: std::exception, e.what() = std::exception"] [thread_id=1]
/Users/breezewish/Work/tiflash/dbms/src/Storages/DeltaMerge/tests/gtest_dm_delta_merge_store.cpp:3884: Failure
Failed

When throwing a DB::Exception: The throw place is recoverable from the stack

/Users/breezewish/Work/tiflash/dbms/src/Storages/DeltaMerge/tests/gtest_dm_delta_merge_store.cpp:3879: Failure
Failed
Code: 0. DB::Exception: foo

Stack trace:

     0x10d2cf7bc	StackTrace::StackTrace() [gtests_dbms+4508202940]
                	dbms/src/Common/StackTrace.cpp:23
     0x10d2cf7f8	StackTrace::StackTrace() [gtests_dbms+4508203000]
                	dbms/src/Common/StackTrace.cpp:22
     0x10077e784	DB::Exception::Exception(std::__1::basic_string, std::__1::allocator > const&, int) [gtests_dbms+4295010180]
                	dbms/src/Common/Exception.h:41
     0x10077d88c	DB::Exception::Exception(std::__1::basic_string, std::__1::allocator > const&, int) [gtests_dbms+4295006348]
                	dbms/src/Common/Exception.h:43
     0x1020de8a4	DB::DM::tests::DeltaMergeStoreMergeDeltaBySegmentTest_RetryBySplit_Test::TestBody() [gtests_dbms+4321618084]
                	dbms/src/Storages/DeltaMerge/tests/gtest_dm_delta_merge_store.cpp:3809
     0x108c8e300	void testing::internal::HandleSehExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) [gtests_dbms+4434535168]
                	contrib/googletest/googletest/src/gtest.cc:2443
     0x108c60e34	void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) [gtests_dbms+4434349620]
                	contrib/googletest/googletest/src/gtest.cc:2479
     0x108c60d84	testing::Test::Run() [gtests_dbms+4434349444]
                	contrib/googletest/googletest/src/gtest.cc:2517
     0x108c61d44	testing::TestInfo::Run() [gtests_dbms+4434353476]
                	contrib/googletest/googletest/src/gtest.cc:2693
     0x108c62b50	testing::TestCase::Run() [gtests_dbms+4434357072]
                	contrib/googletest/googletest/src/gtest.cc:2811
     0x108c6cfd0	testing::internal::UnitTestImpl::RunAllTests() [gtests_dbms+4434399184]
                	contrib/googletest/googletest/src/gtest.cc:5177
     0x108c931ac	bool testing::internal::HandleSehExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) [gtests_dbms+4434555308]
                	contrib/googletest/googletest/src/gtest.cc:2443
     0x108c6cabc	bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) [gtests_dbms+4434397884]
                	contrib/googletest/googletest/src/gtest.cc:2479
     0x108c6c9ac	testing::UnitTest::Run() [gtests_dbms+4434397612]
                	contrib/googletest/googletest/src/gtest.cc:4786
     0x1028d1760	RUN_ALL_TESTS() [gtests_dbms+4329953120]
                	contrib/googletest/googletest/include/gtest/gtest.h:2341
     0x1028d1464	main [gtests_dbms+4329952356]
                	dbms/src/TestUtils/gtests_dbms_main.cpp:77
     0x150d4d088	

When std::terminate caused by dropping a joinable std::thread: The throw place is recoverable from the stack

libc++abi: terminating
Received signal Abort trap: 6

     0x111a22b7c	StackTrace::StackTrace() [gtests_dbms+4508232572]
                	dbms/src/Common/StackTrace.cpp:23
     0x111a22bb8	StackTrace::StackTrace() [gtests_dbms+4508232632]
                	dbms/src/Common/StackTrace.cpp:22
     0x10702452c	fault_signal_handler(int) [gtests_dbms+4329981228]
                	dbms/src/TestUtils/gtests_dbms_main.cpp:32
     0x1bf16d4c4	_OSAtomicTestAndClearBarrier [libsystem_platform.dylib+6445864132]
     0x1bf155ee0	__pthread_atfork_prepare_handlers [libsystem_pthread.dylib+6445768416]
     0x1bf090340	 [libsystem_c.dylib+6444958528]
     0x1bf110b08	 [libc++abi.dylib+6445484808]
     0x1bf100834	 [libc++abi.dylib+6445418548]
     0x1bf10fea4	 [libc++abi.dylib+6445481636]
     0x1bf10fe2c	 [libc++abi.dylib+6445481516]
     0x10682b444	DB::DM::tests::DeltaMergeStoreMergeDeltaBySegmentTest_RetryBySplit_Test::TestBody() [gtests_dbms+4321621060]
                	dbms/src/Storages/DeltaMerge/tests/gtest_dm_delta_merge_store.cpp:3810
     0x10d3e16cc	void testing::internal::HandleSehExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) [gtests_dbms+4434564812]
                	contrib/googletest/googletest/src/gtest.cc:2443
     0x10d3b4200	void testing::internal::HandleExceptionsInMethodIfSupported(testing::Test*, void (testing::Test::*)(), char const*) [gtests_dbms+4434379264]
                	contrib/googletest/googletest/src/gtest.cc:2479
     0x10d3b4150	testing::Test::Run() [gtests_dbms+4434379088]
                	contrib/googletest/googletest/src/gtest.cc:2517
     0x10d3b5110	testing::TestInfo::Run() [gtests_dbms+4434383120]
                	contrib/googletest/googletest/src/gtest.cc:2693
     0x10d3b5f1c	testing::TestCase::Run() [gtests_dbms+4434386716]
                	contrib/googletest/googletest/src/gtest.cc:2811
     0x10d3c039c	testing::internal::UnitTestImpl::RunAllTests() [gtests_dbms+4434428828]
                	contrib/googletest/googletest/src/gtest.cc:5177
     0x10d3e6578	bool testing::internal::HandleSehExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) [gtests_dbms+4434584952]
                	contrib/googletest/googletest/src/gtest.cc:2443
     0x10d3bfe88	bool testing::internal::HandleExceptionsInMethodIfSupported(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) [gtests_dbms+4434427528]
                	contrib/googletest/googletest/src/gtest.cc:2479
     0x10d3bfd78	testing::UnitTest::Run() [gtests_dbms+4434427256]
                	contrib/googletest/googletest/src/gtest.cc:4786
     0x107024b10	RUN_ALL_TESTS() [gtests_dbms+4329982736]
                	contrib/googletest/googletest/include/gtest/gtest.h:2341
     0x107024814	main [gtests_dbms+4329981972]
                	dbms/src/TestUtils/gtests_dbms_main.cpp:77
     0x155431088	
[1]    58158 abort      /Users/breezewish/Work/tiflash/cmake-build-debug/dbms/gtests_dbms

@breezewish
Copy link
Member Author

/run-all-tests

@sre-bot
Copy link
Collaborator

sre-bot commented Jul 27, 2022

Coverage for changed files

Filename                                                     Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Common/FailPoint.cpp                                             593               230    61.21%           8                 2    75.00%          84                36    57.14%         202               112    44.55%
Common/SyncPoint/Ctl.cpp                                         132                31    76.52%           7                 0   100.00%          62                 4    93.55%          58                33    43.10%
Common/SyncPoint/Ctl.h                                             2                 0   100.00%           2                 0   100.00%           8                 0   100.00%           0                 0         -
Common/SyncPoint/ScopeGuard.cpp                                    8                 1    87.50%           5                 0   100.00%          18                 1    94.44%           2                 1    50.00%
Common/SyncPoint/ScopeGuard.h                                      1                 0   100.00%           1                 0   100.00%           3                 0   100.00%           0                 0         -
Common/SyncPoint/SyncChannel.h                                    22                 3    86.36%           8                 0   100.00%          81                 2    97.53%          16                 6    62.50%
Flash/Management/ManualCompact.cpp                               134                54    59.70%           9                 0   100.00%         166                23    86.14%          66                32    51.52%
Flash/Management/tests/gtest_manual_compact.cpp                  154                78    49.35%          16                 0   100.00%         245                 4    98.37%          54                45    16.67%
Storages/DeltaMerge/Delta/ColumnFileFlushTask.cpp                 38                 3    92.11%           3                 0   100.00%          60                 6    90.00%          22                 3    86.36%
Storages/DeltaMerge/DeltaMergeStore.cpp                         1500               545    63.67%          67                 7    89.55%        2132               545    74.44%         880               419    52.39%
Storages/DeltaMerge/Segment.cpp                                  695               210    69.78%          47                 3    93.62%        1170               263    77.52%         368               192    47.83%
Storages/DeltaMerge/tests/MultiSegmentTestUtil.h                  43                 3    93.02%           6                 0   100.00%          86                 0   100.00%          12                 3    75.00%
Storages/DeltaMerge/tests/gtest_dm_delta_merge_store.cpp        1225               329    73.14%          48                 1    97.92%        3228               107    96.69%         586               196    66.55%
TestUtils/TiFlashTestBasic.h                                       4                 0   100.00%           2                 0   100.00%          12                 0   100.00%           2                 0   100.00%
TestUtils/gtests_dbms_main.cpp                                     7                 4    42.86%           4                 2    50.00%          36                12    66.67%           4                 2    50.00%

Files which contain no functions:
Common/SyncPoint/SyncPoint.h                                       0                 0         -           0                 0         -           0                 0         -           0                 0         -
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                           4558              1491    67.29%         233                15    93.56%        7391              1003    86.43%        2272              1044    54.05%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18859      9438             49.95%    214950  95320        55.65%

full coverage report (for internal network access only)

Copy link
Contributor

@JaySon-Huang JaySon-Huang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some small comment

dbms/src/Common/SyncPoint/SyncChannel.h Outdated Show resolved Hide resolved
dbms/src/Common/SyncPoint/SyncChannel.h Outdated Show resolved Hide resolved
Copy link
Contributor

@JaySon-Huang JaySon-Huang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with previous minor comments

@ti-chi-bot ti-chi-bot added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Jul 27, 2022
Signed-off-by: Wish <[email protected]>
@breezewish
Copy link
Member Author

/merge

@ti-chi-bot
Copy link
Member

@breezewish: It seems you want to merge this PR, I will help you trigger all the tests:

/run-all-tests

You only need to trigger /merge once, and if the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes.

If you have any questions about the PR merge process, please refer to pr process.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository.

@ti-chi-bot
Copy link
Member

This pull request has been accepted and is ready to merge.

Commit hash: 59e4321

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Jul 27, 2022
@ti-chi-bot
Copy link
Member

@breezewish: Your PR was out of date, I have automatically updated it for you.

At the same time I will also trigger all tests for you:

/run-all-tests

If the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository.

@sre-bot
Copy link
Collaborator

sre-bot commented Jul 27, 2022

Coverage for changed files

Filename                                                     Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Common/FailPoint.cpp                                             581               218    62.48%           8                 2    75.00%          84                36    57.14%         198               108    45.45%
Common/SyncPoint/Ctl.cpp                                         132                31    76.52%           7                 0   100.00%          62                 4    93.55%          58                33    43.10%
Common/SyncPoint/Ctl.h                                             2                 0   100.00%           2                 0   100.00%           8                 0   100.00%           0                 0         -
Common/SyncPoint/ScopeGuard.cpp                                    8                 1    87.50%           5                 0   100.00%          18                 1    94.44%           2                 1    50.00%
Common/SyncPoint/ScopeGuard.h                                      1                 0   100.00%           1                 0   100.00%           3                 0   100.00%           0                 0         -
Common/SyncPoint/SyncChannel.h                                    23                 4    82.61%           9                 0   100.00%          82                 2    97.56%          16                 8    50.00%
Flash/Management/ManualCompact.cpp                               134                54    59.70%           9                 0   100.00%         166                23    86.14%          66                32    51.52%
Flash/Management/tests/gtest_manual_compact.cpp                  154                78    49.35%          16                 0   100.00%         245                 4    98.37%          54                45    16.67%
Storages/DeltaMerge/Delta/ColumnFileFlushTask.cpp                 38                 3    92.11%           3                 0   100.00%          60                 6    90.00%          22                 3    86.36%
Storages/DeltaMerge/DeltaMergeStore.cpp                         1500               545    63.67%          67                 7    89.55%        2132               545    74.44%         880               418    52.50%
Storages/DeltaMerge/Segment.cpp                                  695               210    69.78%          47                 3    93.62%        1170               263    77.52%         368               192    47.83%
Storages/DeltaMerge/tests/MultiSegmentTestUtil.h                  43                 3    93.02%           6                 0   100.00%          86                 0   100.00%          12                 3    75.00%
Storages/DeltaMerge/tests/gtest_dm_delta_merge_store.cpp        1225               329    73.14%          48                 1    97.92%        3228               107    96.69%         586               196    66.55%
TestUtils/TiFlashTestBasic.h                                       4                 0   100.00%           2                 0   100.00%          12                 0   100.00%           2                 0   100.00%
TestUtils/gtests_dbms_main.cpp                                     7                 4    42.86%           4                 2    50.00%          36                12    66.67%           4                 2    50.00%

Files which contain no functions:
Common/SyncPoint/SyncPoint.h                                       0                 0         -           0                 0         -           0                 0         -           0                 0         -
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                           4547              1480    67.45%         234                15    93.59%        7392              1003    86.43%        2268              1041    54.10%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18868      9440             49.97%    215027  95369        55.65%

full coverage report (for internal network access only)

@ti-chi-bot ti-chi-bot merged commit ad5201c into master Jul 27, 2022
ti-chi-bot pushed a commit to ti-chi-bot/tiflash that referenced this pull request Jul 27, 2022
@ti-chi-bot
Copy link
Member

In response to a cherrypick label: new pull request created: #5485.

@ti-chi-bot
Copy link
Member

In response to a cherrypick label: new pull request created: #5486.

@JaySon-Huang JaySon-Huang deleted the wenxuan/compact/parallel_tests branch July 28, 2022 01:46
breezewish added a commit to ti-chi-bot/tiflash that referenced this pull request Aug 22, 2022
ti-chi-bot added a commit that referenced this pull request Aug 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-cherry-pick-release-5.4 Should cherry pick this PR to release-5.4 branch. needs-cherry-pick-release-6.1 Should cherry pick this PR to release-6.1 branch. release-note-none Denotes a PR that doesn't merit a release note. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants