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

MPP: implement minTSO Scheduler #4044

Merged
merged 33 commits into from
Mar 15, 2022
Merged

MPP: implement minTSO Scheduler #4044

merged 33 commits into from
Mar 15, 2022

Conversation

fzhedu
Copy link
Contributor

@fzhedu fzhedu commented Feb 16, 2022

What problem does this PR solve?

Issue Number: close #4256
Issue Number: close #4256
design doc 1
design doc 0

Problem Summary:
implement minTSO Scheduler
which schedule tasks from a query one by one

TODO

  • schedule tasks from a query in batch.
  • merge the PR which estimates thread usage from woody
  • test
  • doc

What is changed and how it works?

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

implement minTSO Scheduler

@ti-chi-bot
Copy link
Member

ti-chi-bot commented Feb 16, 2022

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • fuzhe1989
  • yibin87

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 Denotes a PR that will be considered when it comes time to generate release notes. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Feb 16, 2022
@ti-chi-bot ti-chi-bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 16, 2022
@fzhedu
Copy link
Contributor Author

fzhedu commented Feb 16, 2022

/run-all-tests

@sre-bot
Copy link
Collaborator

sre-bot commented Feb 16, 2022

Coverage for changed files

Filename                                Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Flash/Mpp/MPPTask.cpp                       332               332     0.00%          19                19     0.00%         311               311     0.00%         154               154     0.00%
Flash/Mpp/MPPTask.h                           3                 3     0.00%           3                 3     0.00%           3                 3     0.00%           0                 0         -
Flash/Mpp/MPPTaskManager.cpp                 98                96     2.04%          11                 9    18.18%         171               169     1.17%          74                74     0.00%
Flash/Mpp/MinTSOScheduler.cpp                75                73     2.67%           4                 2    50.00%         124               119     4.03%          62                62     0.00%
Storages/Transaction/TMTContext.cpp          53                38    28.30%          34                20    41.18%         146               102    30.14%          12                11     8.33%
Storages/Transaction/TMTContext.h             4                 3    25.00%           4                 3    25.00%           4                 3    25.00%           0                 0         -
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                       565               545     3.54%          75                56    25.33%         759               707     6.85%         302               301     0.33%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
16413      9538             41.89%    181014  96710        46.57%

full coverage report (for internal network access only)

@fzhedu
Copy link
Contributor Author

fzhedu commented Feb 16, 2022

/run-all-tests

@sre-bot
Copy link
Collaborator

sre-bot commented Feb 16, 2022

Coverage for changed files

Filename                                Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Flash/Mpp/MPPTask.cpp                       332               332     0.00%          19                19     0.00%         311               311     0.00%         154               154     0.00%
Flash/Mpp/MPPTask.h                           3                 3     0.00%           3                 3     0.00%           3                 3     0.00%           0                 0         -
Flash/Mpp/MPPTaskManager.cpp                 98                96     2.04%          11                 9    18.18%         171               169     1.17%          74                74     0.00%
Flash/Mpp/MinTSOScheduler.cpp                74                73     1.35%           3                 2    33.33%         122               119     2.46%          62                62     0.00%
Flash/Mpp/MinTSOScheduler.h                   1                 0   100.00%           1                 0   100.00%           1                 0   100.00%           0                 0         -
Storages/Transaction/TMTContext.cpp          53                38    28.30%          34                20    41.18%         146               102    30.14%          12                11     8.33%
Storages/Transaction/TMTContext.h             4                 3    25.00%           4                 3    25.00%           4                 3    25.00%           0                 0         -
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                       565               545     3.54%          75                56    25.33%         758               707     6.73%         302               301     0.33%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
16413      9537             41.89%    181013  96719        46.57%

full coverage report (for internal network access only)

@fzhedu
Copy link
Contributor Author

fzhedu commented Feb 16, 2022

/run-all-tests

1 similar comment
@fzhedu
Copy link
Contributor Author

fzhedu commented Feb 16, 2022

/run-all-tests

@sre-bot
Copy link
Collaborator

sre-bot commented Feb 16, 2022

Coverage for changed files

Filename                                Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Flash/Mpp/MPPTask.cpp                       333               333     0.00%          19                19     0.00%         312               312     0.00%         154               154     0.00%
Flash/Mpp/MPPTask.h                           3                 3     0.00%           3                 3     0.00%           3                 3     0.00%           0                 0         -
Flash/Mpp/MPPTaskManager.cpp                 95                94     1.05%          10                 9    10.00%         166               165     0.60%          72                72     0.00%
Flash/Mpp/MPPTaskManager.h                    1                 0   100.00%           1                 0   100.00%           1                 0   100.00%           0                 0         -
Flash/Mpp/MinTSOScheduler.cpp                65                64     1.54%           3                 2    33.33%         113               110     2.65%          52                52     0.00%
Flash/Mpp/MinTSOScheduler.h                   1                 0   100.00%           1                 0   100.00%           1                 0   100.00%           0                 0         -
Storages/Transaction/TMTContext.cpp          53                38    28.30%          34                20    41.18%         146               102    30.14%          12                11     8.33%
Storages/Transaction/TMTContext.h             4                 3    25.00%           4                 3    25.00%           4                 3    25.00%           0                 0         -
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                       555               535     3.60%          75                56    25.33%         746               695     6.84%         290               289     0.34%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
16413      9538             41.89%    181001  96698        46.58%

full coverage report (for internal network access only)

@fzhedu
Copy link
Contributor Author

fzhedu commented Feb 16, 2022

/run-integration-tests

@ti-chi-bot ti-chi-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 17, 2022
@fzhedu fzhedu force-pushed the minTSO branch 2 times, most recently from 6280685 to 1aef1c2 Compare February 17, 2022 11:07
@ti-chi-bot ti-chi-bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 17, 2022
@fzhedu
Copy link
Contributor Author

fzhedu commented Feb 17, 2022

/run-all-tests

@fzhedu fzhedu changed the title MPP: implement minTSO Scheduler WIP MPP: implement minTSO Scheduler Feb 17, 2022
@sre-bot
Copy link
Collaborator

sre-bot commented Feb 17, 2022

Coverage for changed files

Filename                                Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Flash/Mpp/MPPTask.cpp                       365               365     0.00%          20                20     0.00%         326               326     0.00%         166               166     0.00%
Flash/Mpp/MPPTask.h                           3                 3     0.00%           3                 3     0.00%           3                 3     0.00%           0                 0         -
Flash/Mpp/MPPTaskManager.cpp                 99                98     1.01%          11                10     9.09%         175               174     0.57%          72                72     0.00%
Flash/Mpp/MPPTaskManager.h                    1                 0   100.00%           1                 0   100.00%           1                 0   100.00%           0                 0         -
Flash/Mpp/MinTSOScheduler.cpp                76                75     1.32%           3                 2    33.33%         116               113     2.59%          62                62     0.00%
Flash/Mpp/MinTSOScheduler.h                   1                 0   100.00%           1                 0   100.00%           1                 0   100.00%           0                 0         -
Storages/Transaction/TMTContext.cpp          54                38    29.63%          35                20    42.86%         152               105    30.92%          12                11     8.33%
Storages/Transaction/TMTContext.h             4                 3    25.00%           4                 3    25.00%           4                 3    25.00%           0                 0         -
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                       603               582     3.48%          78                58    25.64%         778               724     6.94%         312               311     0.32%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
16555      9511             42.55%    183004  96282        47.39%

full coverage report (for internal network access only)

@fzhedu
Copy link
Contributor Author

fzhedu commented Feb 17, 2022

/run-all-tests

@sre-bot
Copy link
Collaborator

sre-bot commented Feb 17, 2022

Coverage for changed files

Filename                                Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Flash/Mpp/MPPTask.cpp                       365               365     0.00%          20                20     0.00%         326               326     0.00%         166               166     0.00%
Flash/Mpp/MPPTask.h                           3                 3     0.00%           3                 3     0.00%           3                 3     0.00%           0                 0         -
Flash/Mpp/MPPTaskManager.cpp                 99                98     1.01%          11                10     9.09%         175               174     0.57%          72                72     0.00%
Flash/Mpp/MPPTaskManager.h                    1                 0   100.00%           1                 0   100.00%           1                 0   100.00%           0                 0         -
Flash/Mpp/MinTSOScheduler.cpp                76                75     1.32%           3                 2    33.33%         116               113     2.59%          62                62     0.00%
Flash/Mpp/MinTSOScheduler.h                   1                 0   100.00%           1                 0   100.00%           1                 0   100.00%           0                 0         -
Interpreters/Settings.h                       1                 0   100.00%           1                 0   100.00%           1                 0   100.00%           0                 0         -
Storages/Transaction/TMTContext.cpp          54                38    29.63%          35                20    42.86%         152               105    30.92%          12                11     8.33%
Storages/Transaction/TMTContext.h             4                 3    25.00%           4                 3    25.00%           4                 3    25.00%           0                 0         -
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                       604               582     3.64%          79                58    26.58%         779               724     7.06%         312               311     0.32%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
16555      9511             42.55%    183004  96274        47.39%

full coverage report (for internal network access only)

scheduled = true;
schedule_cv.notify_one();
}
void MPPTask::deleteAndScheduleQueries()
Copy link
Contributor

Choose a reason for hiding this comment

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

It might be more natural to remove this method in MPPTask, and invoke the scheduler's one in Manager directly.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

but Manager cannot get the scheduler.

{
/// find a normal query
UInt64 current_query_id = 0;
query_task_set = task_manager->getQueryTaskSetWithoutLock(current_query_id);
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we query task with query_id 0?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated.

@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 Mar 14, 2022
@fzhedu
Copy link
Contributor Author

fzhedu commented Mar 14, 2022

/merge

@ti-chi-bot
Copy link
Member

@fzhedu: 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: 6a3add1

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

@windtalker windtalker left a comment

Choose a reason for hiding this comment

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

LGTM

@sre-bot
Copy link
Collaborator

sre-bot commented Mar 14, 2022

Coverage for changed files

Filename                                            Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Flash/Mpp/MPPTask.cpp                                   409               409     0.00%          21                21     0.00%         347               347     0.00%         186               186     0.00%
Flash/Mpp/MPPTask.h                                       3                 3     0.00%           3                 3     0.00%           3                 3     0.00%           0                 0         -
Flash/Mpp/MPPTaskManager.cpp                             97                96     1.03%          11                10     9.09%         173               172     0.58%          70                70     0.00%
Flash/Mpp/MPPTaskManager.h                                1                 0   100.00%           1                 0   100.00%           1                 0   100.00%           0                 0         -
Flash/Mpp/MPPTunnel.h                                     8                 8     0.00%           8                 8     0.00%          14                14     0.00%           0                 0         -
Flash/Mpp/MinTSOScheduler.cpp                           228               213     6.58%           7                 6    14.29%         145               135     6.90%         132               127     3.79%
Flash/Mpp/MinTSOScheduler.h                               4                 1    75.00%           2                 0   100.00%           4                 0   100.00%           4                 3    25.00%
Interpreters/Settings.h                                   1                 0   100.00%           1                 0   100.00%           1                 0   100.00%           0                 0         -
Storages/Page/V3/PageDirectory.cpp                      441                68    84.58%          30                 3    90.00%         986               195    80.22%         364                84    76.92%
Storages/Page/V3/PageDirectory.h                         24                 6    75.00%          24                 6    75.00%         101                21    79.21%           0                 0         -
Storages/Page/V3/PageDirectoryFactory.cpp                36                 8    77.78%           4                 0   100.00%         105                20    80.95%          42                 9    78.57%
Storages/Page/V3/PageEntriesEdit.h                       54                10    81.48%          39                 8    79.49%         157                42    73.25%          14                 6    57.14%
Storages/Page/V3/WAL/WALReader.cpp                       71                 9    87.32%           9                 0   100.00%         173                13    92.49%          54                12    77.78%
Storages/Page/V3/WAL/serialize.cpp                       47                11    76.60%          15                 1    93.33%         190                41    78.42%          52                16    69.23%
Storages/Page/V3/WALStore.cpp                            69                39    43.48%           8                 1    87.50%         119                42    64.71%          32                19    40.62%
Storages/Page/V3/tests/entries_helper.h                  65                36    44.62%          10                 3    70.00%         238               111    53.36%          32                21    34.38%
Storages/Page/V3/tests/gtest_page_directory.cpp        8494              1499    82.35%          46                 0   100.00%        1549                 7    99.55%        2672              1352    49.40%
Storages/Page/V3/tests/gtest_page_storage.cpp          2599               952    63.37%          31                 7    77.42%         704               154    78.12%         832               498    40.14%
Storages/Page/V3/tests/gtest_wal_store.cpp             1941               260    86.60%          11                 0   100.00%         451                13    97.12%         642               314    51.09%
Storages/Transaction/SchemaBuilder.cpp                  835               794     4.91%          46                42     8.70%        1030               958     6.99%         488               468     4.10%
Storages/Transaction/SchemaGetter.h                       1                 1     0.00%           1                 1     0.00%           1                 1     0.00%           0                 0         -
Storages/Transaction/TMTContext.cpp                      53                37    30.19%          34                19    44.12%         149               102    31.54%          12                11     8.33%
Storages/Transaction/TMTContext.h                         4                 3    25.00%           4                 3    25.00%           4                 3    25.00%           0                 0         -
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                 15485              4463    71.18%         366               142    61.20%        6645              2394    63.97%        5628              3196    43.21%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
16876      9469             43.89%    190073  96046        49.47%

full coverage report (for internal network access only)

@fzhedu
Copy link
Contributor Author

fzhedu commented Mar 14, 2022

/merge

@ti-chi-bot
Copy link
Member

@fzhedu: 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.

@sre-bot
Copy link
Collaborator

sre-bot commented Mar 14, 2022

Coverage for changed files

too many lines from llvm-cov, please refer to full report instead

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
16905      9497             43.82%    190441  96422        49.37%

full coverage report (for internal network access only)

@ti-chi-bot ti-chi-bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 14, 2022
@fzhedu
Copy link
Contributor Author

fzhedu commented Mar 14, 2022

/merge

@ti-chi-bot
Copy link
Member

@fzhedu: 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.

@fzhedu
Copy link
Contributor Author

fzhedu commented Mar 15, 2022

/run-all-tests

@fzhedu
Copy link
Contributor Author

fzhedu commented Mar 15, 2022

/merge

@ti-chi-bot
Copy link
Member

@fzhedu: 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.

@fzhedu
Copy link
Contributor Author

fzhedu commented Mar 15, 2022

/rebuild

@sre-bot
Copy link
Collaborator

sre-bot commented Mar 15, 2022

Coverage for changed files

Filename                                Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Flash/Mpp/MPPTask.cpp                       395               395     0.00%          20                20     0.00%         328               328     0.00%         176               176     0.00%
Flash/Mpp/MPPTask.h                           3                 3     0.00%           3                 3     0.00%           3                 3     0.00%           0                 0         -
Flash/Mpp/MPPTaskManager.cpp                 97                96     1.03%          11                10     9.09%         173               172     0.58%          70                70     0.00%
Flash/Mpp/MPPTaskManager.h                    1                 0   100.00%           1                 0   100.00%           1                 0   100.00%           0                 0         -
Flash/Mpp/MinTSOScheduler.cpp               228               213     6.58%           7                 6    14.29%         145               135     6.90%         132               127     3.79%
Flash/Mpp/MinTSOScheduler.h                   4                 1    75.00%           2                 0   100.00%           4                 0   100.00%           4                 3    25.00%
Interpreters/Settings.h                       1                 0   100.00%           1                 0   100.00%           1                 0   100.00%           0                 0         -
Storages/Transaction/TMTContext.cpp          53                37    30.19%          34                19    44.12%         149               102    31.54%          12                11     8.33%
Storages/Transaction/TMTContext.h             4                 3    25.00%           4                 3    25.00%           4                 3    25.00%           0                 0         -
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                       786               748     4.83%          83                61    26.51%         808               743     8.04%         394               387     1.78%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
16922      9502             43.85%    190605  96476        49.38%

full coverage report (for internal network access only)

@fzhedu
Copy link
Contributor Author

fzhedu commented Mar 15, 2022

/run-all-tests

@sre-bot
Copy link
Collaborator

sre-bot commented Mar 15, 2022

Coverage for changed files

Filename                                Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Flash/Mpp/MPPTask.cpp                       395               395     0.00%          20                20     0.00%         328               328     0.00%         176               176     0.00%
Flash/Mpp/MPPTask.h                           3                 3     0.00%           3                 3     0.00%           3                 3     0.00%           0                 0         -
Flash/Mpp/MPPTaskManager.cpp                 97                96     1.03%          11                10     9.09%         173               172     0.58%          70                70     0.00%
Flash/Mpp/MPPTaskManager.h                    1                 0   100.00%           1                 0   100.00%           1                 0   100.00%           0                 0         -
Flash/Mpp/MinTSOScheduler.cpp               228               213     6.58%           7                 6    14.29%         145               135     6.90%         132               127     3.79%
Flash/Mpp/MinTSOScheduler.h                   4                 1    75.00%           2                 0   100.00%           4                 0   100.00%           4                 3    25.00%
Interpreters/Settings.h                       1                 0   100.00%           1                 0   100.00%           1                 0   100.00%           0                 0         -
Storages/Transaction/TMTContext.cpp          53                37    30.19%          34                19    44.12%         149               102    31.54%          12                11     8.33%
Storages/Transaction/TMTContext.h             4                 3    25.00%           4                 3    25.00%           4                 3    25.00%           0                 0         -
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                       786               748     4.83%          83                61    26.51%         808               743     8.04%         394               387     1.78%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
16922      9503             43.84%    190605  96477        49.38%

full coverage report (for internal network access only)

@fzhedu fzhedu removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Mar 15, 2022
@fzhedu
Copy link
Contributor Author

fzhedu commented Mar 15, 2022

/merge

@ti-chi-bot
Copy link
Member

@fzhedu: 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.

@sre-bot
Copy link
Collaborator

sre-bot commented Mar 15, 2022

Coverage for changed files

Filename                                Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Flash/Mpp/MPPTask.cpp                       395               395     0.00%          20                20     0.00%         328               328     0.00%         176               176     0.00%
Flash/Mpp/MPPTask.h                           3                 3     0.00%           3                 3     0.00%           3                 3     0.00%           0                 0         -
Flash/Mpp/MPPTaskManager.cpp                 97                96     1.03%          11                10     9.09%         173               172     0.58%          70                70     0.00%
Flash/Mpp/MPPTaskManager.h                    1                 0   100.00%           1                 0   100.00%           1                 0   100.00%           0                 0         -
Flash/Mpp/MinTSOScheduler.cpp               228               213     6.58%           7                 6    14.29%         145               135     6.90%         132               127     3.79%
Flash/Mpp/MinTSOScheduler.h                   4                 1    75.00%           2                 0   100.00%           4                 0   100.00%           4                 3    25.00%
Interpreters/Settings.h                       1                 0   100.00%           1                 0   100.00%           1                 0   100.00%           0                 0         -
Storages/Transaction/TMTContext.cpp          53                37    30.19%          34                19    44.12%         149               102    31.54%          12                11     8.33%
Storages/Transaction/TMTContext.h             4                 3    25.00%           4                 3    25.00%           4                 3    25.00%           0                 0         -
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                       786               748     4.83%          83                61    26.51%         808               743     8.04%         394               387     1.78%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
16922      9502             43.85%    190605  96457        49.39%

full coverage report (for internal network access only)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XL Denotes a PR that changes 500-999 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.

implement a task scheduler for MPP tasks to avoid OOT
8 participants