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

support tiflash_fastscan variable from tidb, remove fast mode in table_info, and change name fast mode to fast scan #5589

Merged
merged 15 commits into from
Aug 30, 2022

Conversation

hongyunyan
Copy link
Contributor

@hongyunyan hongyunyan commented Aug 10, 2022

What problem does this PR solve?

Issue Number: ref #5252

Problem Summary:

What is changed and how it works?

  1. remove the code related to fast_mode in table_info
  2. support is_fast_scan from TableScan and PartitionTableScan from TiDB
  3. change the name 'fast mode' to 'fast scan'

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 Aug 10, 2022

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • breezewish
  • lidezhu

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. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Aug 10, 2022
@ti-chi-bot ti-chi-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 12, 2022
@hongyunyan
Copy link
Contributor Author

/run-all-tests

@hongyunyan
Copy link
Contributor Author

/rebuild

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

/run-all-tests

@hongyunyan
Copy link
Contributor Author

/rebuild

@hongyunyan
Copy link
Contributor Author

/run-all-tests

@sre-bot
Copy link
Collaborator

sre-bot commented Aug 25, 2022

Coverage for changed files

Filename                                                                   Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Debug/DBGInvoker.cpp                                                            30                29     3.33%          10                 9    10.00%         142                75    47.18%          14                14     0.00%
Debug/dbgFuncSchemaName.cpp                                                     70                70     0.00%           7                 7     0.00%         113               113     0.00%          46                46     0.00%
Flash/Coprocessor/DAGStorageInterpreter.cpp                                    447               447     0.00%          32                32     0.00%         888               888     0.00%         276               276     0.00%
Flash/Coprocessor/TiDBTableScan.cpp                                             31                22    29.03%           2                 1    50.00%          52                40    23.08%          24                20    16.67%
Flash/Coprocessor/TiDBTableScan.h                                                8                 4    50.00%           8                 4    50.00%          24                12    50.00%           0                 0         -
Storages/DeltaMerge/DeltaMergeStore.cpp                                       1673               585    65.03%          67                 5    92.54%        2132               520    75.61%         748               313    58.16%
Storages/DeltaMerge/DeltaMergeStore.h                                           41                11    73.17%          19                 2    89.47%         107                26    75.70%          42                 9    78.57%
Storages/DeltaMerge/File/DMFileBlockInputStream.cpp                             12                 2    83.33%           2                 0   100.00%          48                 6    87.50%          12                 3    75.00%
Storages/DeltaMerge/File/DMFileBlockInputStream.h                               20                 3    85.00%          16                 1    93.75%          66                 7    89.39%           4                 2    50.00%
Storages/DeltaMerge/File/DMFileReader.cpp                                      271                23    91.51%          15                 1    93.33%         514                58    88.72%         192                31    83.85%
Storages/DeltaMerge/File/DMFileReader.h                                         11                 2    81.82%           5                 2    60.00%          13                 6    53.85%           4                 0   100.00%
Storages/DeltaMerge/Segment.cpp                                                837               105    87.46%          47                 1    97.87%        1196               121    89.88%         308               110    64.29%
Storages/DeltaMerge/StableValueSpace.cpp                                       113                21    81.42%          15                 1    93.33%         278                46    83.45%          72                21    70.83%
Storages/DeltaMerge/StableValueSpace.h                                          18                 7    61.11%          14                 3    78.57%          35                24    31.43%           4                 4     0.00%
Storages/DeltaMerge/tests/gtest_dm_delta_merge_store.cpp                       863               314    63.62%          62                 1    98.39%        2726                69    97.47%         246               168    31.71%
Storages/DeltaMerge/tests/gtest_dm_delta_merge_store_for_fast_scan.cpp         248                70    71.77%          22                 0   100.00%        1141                 5    99.56%         192                45    76.56%
Storages/SelectQueryInfo.cpp                                                     4                 2    50.00%           4                 2    50.00%           4                 2    50.00%           0                 0         -
Storages/SelectQueryInfo.h                                                       1                 1     0.00%           1                 1     0.00%           1                 1     0.00%           0                 0         -
Storages/StorageDeltaMerge.cpp                                                 708               331    53.25%          58                26    55.17%        1312               728    44.51%         364               233    35.99%
Storages/Transaction/TiDB.cpp                                                  484               268    44.63%          46                13    71.74%         864               395    54.28%         336               149    55.65%
Storages/Transaction/TiDB.h                                                     20                 7    65.00%          16                 3    81.25%          22                 5    77.27%           6                 6     0.00%
Storages/Transaction/tests/gtest_table_info.cpp                                 44                17    61.36%           9                 0   100.00%         151                 0   100.00%          14                 8    42.86%
TiDB/Schema/SchemaBuilder.cpp                                                  979               942     3.78%          48                44     8.33%        1079              1008     6.58%         416               399     4.09%
TiDB/Schema/SchemaBuilder.h                                                      1                 1     0.00%           1                 1     0.00%           1                 1     0.00%           0                 0         -
TiDB/Schema/SchemaGetter.h                                                       1                 1     0.00%           1                 1     0.00%           1                 1     0.00%           0                 0         -
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                                         6935              3285    52.63%         527               161    69.45%       12910              4157    67.80%        3320              1857    44.07%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18416      8326             54.79%    212938  85889        59.66%

full coverage report (for internal network access only)

@sre-bot
Copy link
Collaborator

sre-bot commented Aug 25, 2022

Coverage for changed files

Filename                                                                   Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Debug/DBGInvoker.cpp                                                            30                29     3.33%          10                 9    10.00%         142                75    47.18%          14                14     0.00%
Debug/dbgFuncSchemaName.cpp                                                     70                70     0.00%           7                 7     0.00%         113               113     0.00%          46                46     0.00%
Flash/Coprocessor/DAGStorageInterpreter.cpp                                    447               447     0.00%          32                32     0.00%         888               888     0.00%         276               276     0.00%
Flash/Coprocessor/TiDBTableScan.cpp                                             31                23    25.81%           2                 1    50.00%          52                42    19.23%          24                21    12.50%
Flash/Coprocessor/TiDBTableScan.h                                                8                 4    50.00%           8                 4    50.00%          24                12    50.00%           0                 0         -
Storages/DeltaMerge/DeltaMergeStore.cpp                                       1673               593    64.55%          67                 7    89.55%        2132               545    74.44%         748               321    57.09%
Storages/DeltaMerge/DeltaMergeStore.h                                           41                11    73.17%          19                 2    89.47%         107                26    75.70%          42                 9    78.57%
Storages/DeltaMerge/File/DMFileBlockInputStream.cpp                             12                 2    83.33%           2                 0   100.00%          48                 6    87.50%          12                 3    75.00%
Storages/DeltaMerge/File/DMFileBlockInputStream.h                               20                 3    85.00%          16                 1    93.75%          66                 7    89.39%           4                 2    50.00%
Storages/DeltaMerge/File/DMFileReader.cpp                                      271                22    91.88%          15                 1    93.33%         514                58    88.72%         192                29    84.90%
Storages/DeltaMerge/File/DMFileReader.h                                         11                 2    81.82%           5                 2    60.00%          13                 6    53.85%           4                 0   100.00%
Storages/DeltaMerge/Segment.cpp                                                837               105    87.46%          47                 1    97.87%        1196               121    89.88%         308               110    64.29%
Storages/DeltaMerge/StableValueSpace.cpp                                       113                21    81.42%          15                 1    93.33%         278                46    83.45%          72                21    70.83%
Storages/DeltaMerge/StableValueSpace.h                                          18                 7    61.11%          14                 3    78.57%          35                24    31.43%           4                 4     0.00%
Storages/DeltaMerge/tests/gtest_dm_delta_merge_store.cpp                       863               314    63.62%          62                 1    98.39%        2726                69    97.47%         246               168    31.71%
Storages/DeltaMerge/tests/gtest_dm_delta_merge_store_for_fast_scan.cpp         248                70    71.77%          22                 0   100.00%        1141                 5    99.56%         192                45    76.56%
Storages/SelectQueryInfo.cpp                                                     4                 2    50.00%           4                 2    50.00%           4                 2    50.00%           0                 0         -
Storages/SelectQueryInfo.h                                                       1                 1     0.00%           1                 1     0.00%           1                 1     0.00%           0                 0         -
Storages/StorageDeltaMerge.cpp                                                 708               331    53.25%          58                26    55.17%        1312               728    44.51%         364               233    35.99%
Storages/Transaction/TiDB.cpp                                                  484               268    44.63%          46                13    71.74%         864               395    54.28%         336               149    55.65%
Storages/Transaction/TiDB.h                                                     20                 7    65.00%          16                 3    81.25%          22                 5    77.27%           6                 6     0.00%
Storages/Transaction/tests/gtest_table_info.cpp                                 44                17    61.36%           9                 0   100.00%         151                 0   100.00%          14                 8    42.86%
TiDB/Schema/SchemaBuilder.cpp                                                  979               942     3.78%          48                44     8.33%        1079              1008     6.58%         416               399     4.09%
TiDB/Schema/SchemaBuilder.h                                                      1                 1     0.00%           1                 1     0.00%           1                 1     0.00%           0                 0         -
TiDB/Schema/SchemaGetter.h                                                       1                 1     0.00%           1                 1     0.00%           1                 1     0.00%           0                 0         -
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                                         6935              3293    52.52%         527               163    69.07%       12910              4184    67.59%        3320              1864    43.86%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18416      8328             54.78%    212938  85911        59.65%

full coverage report (for internal network access only)

@hongyunyan
Copy link
Contributor Author

/cc @breezewish

@ti-chi-bot ti-chi-bot requested a review from breezewish August 29, 2022 03:06
@hongyunyan hongyunyan changed the title [DNM] support tiflash_fastscan variable from tidb, remove fast mode in table_info, and change name fast mode to fast scan support tiflash_fastscan variable from tidb, remove fast mode in table_info, and change name fast mode to fast scan Aug 29, 2022
@hongyunyan
Copy link
Contributor Author

/run-all-tests

@hongyunyan
Copy link
Contributor Author

/rebuild

@sre-bot
Copy link
Collaborator

sre-bot commented Aug 29, 2022

Coverage for changed files

Filename                                                                   Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Debug/DBGInvoker.cpp                                                            30                29     3.33%          10                 9    10.00%         142                75    47.18%          14                14     0.00%
Debug/dbgFuncSchemaName.cpp                                                     70                70     0.00%           7                 7     0.00%         113               113     0.00%          46                46     0.00%
Flash/Coprocessor/DAGStorageInterpreter.cpp                                    447               447     0.00%          32                32     0.00%         888               888     0.00%         276               276     0.00%
Flash/Coprocessor/TiDBTableScan.cpp                                             31                23    25.81%           2                 1    50.00%          52                42    19.23%          24                21    12.50%
Flash/Coprocessor/TiDBTableScan.h                                                8                 4    50.00%           8                 4    50.00%          24                12    50.00%           0                 0         -
Storages/DeltaMerge/DeltaMergeStore.cpp                                       1687               597    64.61%          67                 7    89.55%        2151               546    74.62%         756               326    56.88%
Storages/DeltaMerge/DeltaMergeStore.h                                           41                11    73.17%          19                 2    89.47%         107                26    75.70%          42                 9    78.57%
Storages/DeltaMerge/File/DMFileBlockInputStream.cpp                             12                 2    83.33%           2                 0   100.00%          48                 6    87.50%          12                 3    75.00%
Storages/DeltaMerge/File/DMFileBlockInputStream.h                               20                 3    85.00%          16                 1    93.75%          66                 7    89.39%           4                 2    50.00%
Storages/DeltaMerge/File/DMFileReader.cpp                                      271                24    91.14%          15                 1    93.33%         514                58    88.72%         192                33    82.81%
Storages/DeltaMerge/File/DMFileReader.h                                         11                 2    81.82%           5                 2    60.00%          13                 6    53.85%           4                 0   100.00%
Storages/DeltaMerge/Segment.cpp                                                837               105    87.46%          47                 1    97.87%        1196               121    89.88%         308               110    64.29%
Storages/DeltaMerge/StableValueSpace.cpp                                       113                21    81.42%          15                 1    93.33%         278                46    83.45%          72                21    70.83%
Storages/DeltaMerge/StableValueSpace.h                                          18                 7    61.11%          14                 3    78.57%          35                24    31.43%           4                 4     0.00%
Storages/DeltaMerge/tests/gtest_dm_delta_merge_store.cpp                       863               314    63.62%          62                 1    98.39%        2726                69    97.47%         246               168    31.71%
Storages/DeltaMerge/tests/gtest_dm_delta_merge_store_for_fast_scan.cpp         248                70    71.77%          22                 0   100.00%        1141                 5    99.56%         192                45    76.56%
Storages/SelectQueryInfo.cpp                                                     4                 2    50.00%           4                 2    50.00%           4                 2    50.00%           0                 0         -
Storages/SelectQueryInfo.h                                                       1                 1     0.00%           1                 1     0.00%           1                 1     0.00%           0                 0         -
Storages/StorageDeltaMerge.cpp                                                 712               335    52.95%          59                27    54.24%        1319               735    44.28%         366               235    35.79%
Storages/Transaction/TiDB.cpp                                                  484               268    44.63%          46                13    71.74%         864               395    54.28%         336               149    55.65%
Storages/Transaction/TiDB.h                                                     20                 7    65.00%          16                 3    81.25%          22                 5    77.27%           6                 6     0.00%
Storages/Transaction/tests/gtest_table_info.cpp                                 44                17    61.36%           9                 0   100.00%         151                 0   100.00%          14                 8    42.86%
TiDB/Schema/SchemaBuilder.cpp                                                  979               942     3.78%          48                44     8.33%        1079              1008     6.58%         416               399     4.09%
TiDB/Schema/SchemaBuilder.h                                                      1                 1     0.00%           1                 1     0.00%           1                 1     0.00%           0                 0         -
TiDB/Schema/SchemaGetter.h                                                       1                 1     0.00%           1                 1     0.00%           1                 1     0.00%           0                 0         -
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                                         6953              3303    52.50%         528               164    68.94%       12936              4192    67.59%        3330              1875    43.69%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18426      8328             54.80%    213053  85959        59.65%

full coverage report (for internal network access only)

@hongyunyan
Copy link
Contributor Author

/run-all-tests

@sre-bot
Copy link
Collaborator

sre-bot commented Aug 30, 2022

Coverage for changed files

Filename                                                                   Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Debug/DBGInvoker.cpp                                                            30                29     3.33%          10                 9    10.00%         142                75    47.18%          14                14     0.00%
Debug/dbgFuncSchemaName.cpp                                                     70                70     0.00%           7                 7     0.00%         113               113     0.00%          46                46     0.00%
Flash/Coprocessor/DAGStorageInterpreter.cpp                                    447               447     0.00%          32                32     0.00%         888               888     0.00%         276               276     0.00%
Flash/Coprocessor/TiDBTableScan.cpp                                             31                23    25.81%           2                 1    50.00%          52                42    19.23%          24                21    12.50%
Flash/Coprocessor/TiDBTableScan.h                                                8                 4    50.00%           8                 4    50.00%          24                12    50.00%           0                 0         -
Storages/DeltaMerge/DeltaMergeStore.cpp                                       1687               589    65.09%          67                 5    92.54%        2151               521    75.78%         756               317    58.07%
Storages/DeltaMerge/DeltaMergeStore.h                                           41                11    73.17%          19                 2    89.47%         107                26    75.70%          42                 9    78.57%
Storages/DeltaMerge/File/DMFileBlockInputStream.cpp                             12                 2    83.33%           2                 0   100.00%          48                 6    87.50%          12                 3    75.00%
Storages/DeltaMerge/File/DMFileBlockInputStream.h                               20                 3    85.00%          16                 1    93.75%          66                 7    89.39%           4                 2    50.00%
Storages/DeltaMerge/File/DMFileReader.cpp                                      271                24    91.14%          15                 1    93.33%         514                58    88.72%         192                33    82.81%
Storages/DeltaMerge/File/DMFileReader.h                                         11                 2    81.82%           5                 2    60.00%          13                 6    53.85%           4                 0   100.00%
Storages/DeltaMerge/Segment.cpp                                                837               105    87.46%          47                 1    97.87%        1196               121    89.88%         308               110    64.29%
Storages/DeltaMerge/StableValueSpace.cpp                                       113                21    81.42%          15                 1    93.33%         278                46    83.45%          72                21    70.83%
Storages/DeltaMerge/StableValueSpace.h                                          18                 7    61.11%          14                 3    78.57%          35                24    31.43%           4                 4     0.00%
Storages/DeltaMerge/tests/gtest_dm_delta_merge_store.cpp                       863               314    63.62%          62                 1    98.39%        2726                69    97.47%         246               168    31.71%
Storages/DeltaMerge/tests/gtest_dm_delta_merge_store_for_fast_scan.cpp         248                70    71.77%          22                 0   100.00%        1141                 5    99.56%         192                45    76.56%
Storages/SelectQueryInfo.cpp                                                     4                 2    50.00%           4                 2    50.00%           4                 2    50.00%           0                 0         -
Storages/SelectQueryInfo.h                                                       1                 1     0.00%           1                 1     0.00%           1                 1     0.00%           0                 0         -
Storages/StorageDeltaMerge.cpp                                                 712               335    52.95%          59                27    54.24%        1319               735    44.28%         366               235    35.79%
Storages/Transaction/TiDB.cpp                                                  484               268    44.63%          46                13    71.74%         864               395    54.28%         336               149    55.65%
Storages/Transaction/TiDB.h                                                     20                 7    65.00%          16                 3    81.25%          22                 5    77.27%           6                 6     0.00%
Storages/Transaction/tests/gtest_table_info.cpp                                 44                17    61.36%           9                 0   100.00%         151                 0   100.00%          14                 8    42.86%
TiDB/Schema/SchemaBuilder.cpp                                                  979               942     3.78%          48                44     8.33%        1079              1008     6.58%         416               399     4.09%
TiDB/Schema/SchemaBuilder.h                                                      1                 1     0.00%           1                 1     0.00%           1                 1     0.00%           0                 0         -
TiDB/Schema/SchemaGetter.h                                                       1                 1     0.00%           1                 1     0.00%           1                 1     0.00%           0                 0         -
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                                         6953              3295    52.61%         528               162    69.32%       12936              4167    67.79%        3330              1866    43.96%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18426      8327             54.81%    213053  85972        59.65%

full coverage report (for internal network access only)

@hongyunyan
Copy link
Contributor Author

/run-all-tests

@sre-bot
Copy link
Collaborator

sre-bot commented Aug 30, 2022

Coverage for changed files

Filename                                                                   Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Debug/DBGInvoker.cpp                                                            30                29     3.33%          10                 9    10.00%         142                75    47.18%          14                14     0.00%
Debug/dbgFuncSchemaName.cpp                                                     70                70     0.00%           7                 7     0.00%         113               113     0.00%          46                46     0.00%
Flash/Coprocessor/DAGStorageInterpreter.cpp                                    447               447     0.00%          32                32     0.00%         888               888     0.00%         276               276     0.00%
Flash/Coprocessor/TiDBTableScan.cpp                                             31                23    25.81%           2                 1    50.00%          52                42    19.23%          24                21    12.50%
Flash/Coprocessor/TiDBTableScan.h                                                8                 4    50.00%           8                 4    50.00%          24                12    50.00%           0                 0         -
Storages/DeltaMerge/DeltaMergeStore.cpp                                       1687               597    64.61%          67                 7    89.55%        2151               546    74.62%         756               326    56.88%
Storages/DeltaMerge/DeltaMergeStore.h                                           41                11    73.17%          19                 2    89.47%         107                26    75.70%          42                 9    78.57%
Storages/DeltaMerge/File/DMFileBlockInputStream.cpp                             12                 2    83.33%           2                 0   100.00%          48                 6    87.50%          12                 3    75.00%
Storages/DeltaMerge/File/DMFileBlockInputStream.h                               20                 3    85.00%          16                 1    93.75%          66                 7    89.39%           4                 2    50.00%
Storages/DeltaMerge/File/DMFileReader.cpp                                      271                23    91.51%          15                 1    93.33%         514                54    89.49%         192                31    83.85%
Storages/DeltaMerge/File/DMFileReader.h                                         11                 2    81.82%           5                 2    60.00%          13                 6    53.85%           4                 0   100.00%
Storages/DeltaMerge/Segment.cpp                                                837               105    87.46%          47                 1    97.87%        1196               121    89.88%         308               110    64.29%
Storages/DeltaMerge/StableValueSpace.cpp                                       113                21    81.42%          15                 1    93.33%         278                46    83.45%          72                21    70.83%
Storages/DeltaMerge/StableValueSpace.h                                          18                 7    61.11%          14                 3    78.57%          35                24    31.43%           4                 4     0.00%
Storages/DeltaMerge/tests/gtest_dm_delta_merge_store.cpp                       863               314    63.62%          62                 1    98.39%        2726                69    97.47%         246               168    31.71%
Storages/DeltaMerge/tests/gtest_dm_delta_merge_store_for_fast_scan.cpp         248                70    71.77%          22                 0   100.00%        1141                 5    99.56%         192                45    76.56%
Storages/SelectQueryInfo.cpp                                                     4                 2    50.00%           4                 2    50.00%           4                 2    50.00%           0                 0         -
Storages/SelectQueryInfo.h                                                       1                 1     0.00%           1                 1     0.00%           1                 1     0.00%           0                 0         -
Storages/StorageDeltaMerge.cpp                                                 712               335    52.95%          59                27    54.24%        1319               735    44.28%         366               235    35.79%
Storages/Transaction/TiDB.cpp                                                  484               268    44.63%          46                13    71.74%         864               395    54.28%         336               149    55.65%
Storages/Transaction/TiDB.h                                                     20                 7    65.00%          16                 3    81.25%          22                 5    77.27%           6                 6     0.00%
Storages/Transaction/tests/gtest_table_info.cpp                                 44                17    61.36%           9                 0   100.00%         151                 0   100.00%          14                 8    42.86%
TiDB/Schema/SchemaBuilder.cpp                                                  979               942     3.78%          48                44     8.33%        1079              1008     6.58%         416               399     4.09%
TiDB/Schema/SchemaBuilder.h                                                      1                 1     0.00%           1                 1     0.00%           1                 1     0.00%           0                 0         -
TiDB/Schema/SchemaGetter.h                                                       1                 1     0.00%           1                 1     0.00%           1                 1     0.00%           0                 0         -
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                                         6953              3302    52.51%         528               164    68.94%       12936              4188    67.63%        3330              1873    43.75%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18426      8328             54.80%    213053  85949        59.66%

full coverage report (for internal network access only)

@hongyunyan
Copy link
Contributor Author

/cc @lidezhu

@ti-chi-bot ti-chi-bot requested a review from lidezhu August 30, 2022 02:33

mysql> alter table test.t compact tiflash replica;

mysql> set @@tiflash_fastscan=ON; set session tidb_isolation_read_engines='tiflash'; select * from test.t;
Copy link
Member

Choose a reason for hiding this comment

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

Is it possible to test multiple sessions? For example, if you incorrectly implemented this session variable to be effective globally, this test case will still pass.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I add more comprehensive test cases here.

Copy link
Member

@breezewish breezewish left a comment

Choose a reason for hiding this comment

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

Some minor test case suggestions.

@ti-chi-bot ti-chi-bot added the status/LGT1 Indicates that a PR has LGTM 1. label Aug 30, 2022
@hongyunyan
Copy link
Contributor Author

/run-all-tests

@sre-bot
Copy link
Collaborator

sre-bot commented Aug 30, 2022

Coverage for changed files

Filename                                                                   Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Debug/DBGInvoker.cpp                                                            30                29     3.33%          10                 9    10.00%         142                75    47.18%          14                14     0.00%
Debug/dbgFuncSchemaName.cpp                                                     70                70     0.00%           7                 7     0.00%         113               113     0.00%          46                46     0.00%
Flash/Coprocessor/DAGStorageInterpreter.cpp                                    447               447     0.00%          32                32     0.00%         888               888     0.00%         276               276     0.00%
Flash/Coprocessor/TiDBTableScan.cpp                                             31                23    25.81%           2                 1    50.00%          52                42    19.23%          24                21    12.50%
Flash/Coprocessor/TiDBTableScan.h                                                8                 4    50.00%           8                 4    50.00%          24                12    50.00%           0                 0         -
Storages/DeltaMerge/DeltaMergeStore.cpp                                       1687               589    65.09%          67                 5    92.54%        2151               521    75.78%         756               315    58.33%
Storages/DeltaMerge/DeltaMergeStore.h                                           41                10    75.61%          19                 2    89.47%         107                24    77.57%          42                 8    80.95%
Storages/DeltaMerge/File/DMFileBlockInputStream.cpp                             12                 2    83.33%           2                 0   100.00%          48                 6    87.50%          12                 3    75.00%
Storages/DeltaMerge/File/DMFileBlockInputStream.h                               20                 3    85.00%          16                 1    93.75%          66                 7    89.39%           4                 2    50.00%
Storages/DeltaMerge/File/DMFileReader.cpp                                      271                21    92.25%          15                 1    93.33%         514                51    90.08%         192                29    84.90%
Storages/DeltaMerge/File/DMFileReader.h                                         11                 2    81.82%           5                 2    60.00%          13                 6    53.85%           4                 0   100.00%
Storages/DeltaMerge/Segment.cpp                                                837               105    87.46%          47                 1    97.87%        1196               121    89.88%         308               110    64.29%
Storages/DeltaMerge/StableValueSpace.cpp                                       113                21    81.42%          15                 1    93.33%         278                46    83.45%          72                21    70.83%
Storages/DeltaMerge/StableValueSpace.h                                          18                 7    61.11%          14                 3    78.57%          35                24    31.43%           4                 4     0.00%
Storages/DeltaMerge/tests/gtest_dm_delta_merge_store.cpp                       863               314    63.62%          62                 1    98.39%        2726                69    97.47%         246               168    31.71%
Storages/DeltaMerge/tests/gtest_dm_delta_merge_store_for_fast_scan.cpp         248                70    71.77%          22                 0   100.00%        1141                 5    99.56%         192                45    76.56%
Storages/SelectQueryInfo.cpp                                                     4                 2    50.00%           4                 2    50.00%           4                 2    50.00%           0                 0         -
Storages/SelectQueryInfo.h                                                       1                 1     0.00%           1                 1     0.00%           1                 1     0.00%           0                 0         -
Storages/StorageDeltaMerge.cpp                                                 712               335    52.95%          59                27    54.24%        1319               735    44.28%         366               235    35.79%
Storages/Transaction/TiDB.cpp                                                  484               268    44.63%          46                13    71.74%         864               395    54.28%         336               149    55.65%
Storages/Transaction/TiDB.h                                                     20                 7    65.00%          16                 3    81.25%          22                 5    77.27%           6                 6     0.00%
Storages/Transaction/tests/gtest_table_info.cpp                                 44                17    61.36%           9                 0   100.00%         151                 0   100.00%          14                 8    42.86%
TiDB/Schema/SchemaBuilder.cpp                                                  979               942     3.78%          48                44     8.33%        1079              1008     6.58%         416               399     4.09%
TiDB/Schema/SchemaBuilder.h                                                      1                 1     0.00%           1                 1     0.00%           1                 1     0.00%           0                 0         -
TiDB/Schema/SchemaGetter.h                                                       1                 1     0.00%           1                 1     0.00%           1                 1     0.00%           0                 0         -
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                                         6953              3291    52.67%         528               162    69.32%       12936              4158    67.86%        3330              1859    44.17%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18426      8327             54.81%    213053  85895        59.68%

full coverage report (for internal network access only)

dbms/src/Storages/SelectQueryInfo.h Outdated Show resolved Hide resolved
dbms/src/Storages/StorageDeltaMerge.cpp Outdated Show resolved Hide resolved
dbms/src/Storages/StorageDeltaMerge.cpp Outdated Show resolved Hide resolved
dbms/src/Storages/DeltaMerge/DeltaMergeStore.h Outdated Show resolved Hide resolved
dbms/src/Storages/DeltaMerge/DeltaMergeStore.h Outdated Show resolved Hide resolved
dbms/src/Storages/DeltaMerge/DeltaMergeStore.h Outdated Show resolved Hide resolved
@hongyunyan
Copy link
Contributor Author

/run-all-tests

@hongyunyan
Copy link
Contributor Author

/run-all-tests

Copy link
Contributor

@lidezhu lidezhu 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 status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Aug 30, 2022
@hongyunyan
Copy link
Contributor Author

/merge

@ti-chi-bot
Copy link
Member

@hongyunyan: 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: 7c48b19

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Aug 30, 2022
@sre-bot
Copy link
Collaborator

sre-bot commented Aug 30, 2022

Coverage for changed files

Filename                                                                   Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Debug/DBGInvoker.cpp                                                            30                29     3.33%          10                 9    10.00%         142                75    47.18%          14                14     0.00%
Debug/dbgFuncSchemaName.cpp                                                     70                70     0.00%           7                 7     0.00%         113               113     0.00%          46                46     0.00%
Flash/Coprocessor/DAGStorageInterpreter.cpp                                    447               447     0.00%          32                32     0.00%         888               888     0.00%         276               276     0.00%
Flash/Coprocessor/TiDBTableScan.cpp                                             31                23    25.81%           2                 1    50.00%          52                42    19.23%          24                21    12.50%
Flash/Coprocessor/TiDBTableScan.h                                                8                 4    50.00%           8                 4    50.00%          24                12    50.00%           0                 0         -
Storages/DeltaMerge/DeltaMergeStore.cpp                                       1687               589    65.09%          67                 5    92.54%        2151               521    75.78%         756               316    58.20%
Storages/DeltaMerge/DeltaMergeStore.h                                           41                10    75.61%          19                 2    89.47%         107                24    77.57%          42                 8    80.95%
Storages/DeltaMerge/File/DMFileBlockInputStream.cpp                             12                 2    83.33%           2                 0   100.00%          48                 6    87.50%          12                 3    75.00%
Storages/DeltaMerge/File/DMFileBlockInputStream.h                               20                 3    85.00%          16                 1    93.75%          66                 7    89.39%           4                 2    50.00%
Storages/DeltaMerge/File/DMFileReader.cpp                                      271                23    91.51%          15                 1    93.33%         514                58    88.72%         192                30    84.38%
Storages/DeltaMerge/File/DMFileReader.h                                         11                 2    81.82%           5                 2    60.00%          13                 6    53.85%           4                 0   100.00%
Storages/DeltaMerge/Segment.cpp                                                837               105    87.46%          47                 1    97.87%        1196               121    89.88%         308               110    64.29%
Storages/DeltaMerge/StableValueSpace.cpp                                       113                21    81.42%          15                 1    93.33%         278                46    83.45%          72                21    70.83%
Storages/DeltaMerge/StableValueSpace.h                                          18                 7    61.11%          14                 3    78.57%          35                24    31.43%           4                 4     0.00%
Storages/DeltaMerge/tests/gtest_dm_delta_merge_store.cpp                       863               314    63.62%          62                 1    98.39%        2726                69    97.47%         246               168    31.71%
Storages/DeltaMerge/tests/gtest_dm_delta_merge_store_for_fast_scan.cpp         248                70    71.77%          22                 0   100.00%        1141                 5    99.56%         192                45    76.56%
Storages/SelectQueryInfo.cpp                                                     4                 2    50.00%           4                 2    50.00%           4                 2    50.00%           0                 0         -
Storages/SelectQueryInfo.h                                                       1                 1     0.00%           1                 1     0.00%           1                 1     0.00%           0                 0         -
Storages/StorageDeltaMerge.cpp                                                 712               335    52.95%          59                27    54.24%        1320               735    44.32%         366               235    35.79%
Storages/Transaction/TiDB.cpp                                                  484               268    44.63%          46                13    71.74%         864               395    54.28%         336               149    55.65%
Storages/Transaction/TiDB.h                                                     20                 7    65.00%          16                 3    81.25%          22                 5    77.27%           6                 6     0.00%
Storages/Transaction/tests/gtest_table_info.cpp                                 44                17    61.36%           9                 0   100.00%         151                 0   100.00%          14                 8    42.86%
TiDB/Schema/SchemaBuilder.cpp                                                  979               942     3.78%          48                44     8.33%        1079              1008     6.58%         416               399     4.09%
TiDB/Schema/SchemaBuilder.h                                                      1                 1     0.00%           1                 1     0.00%           1                 1     0.00%           0                 0         -
TiDB/Schema/SchemaGetter.h                                                       1                 1     0.00%           1                 1     0.00%           1                 1     0.00%           0                 0         -
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                                         6953              3293    52.64%         528               162    69.32%       12937              4165    67.81%        3330              1861    44.11%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18475      8322             54.96%    213729  85905        59.81%

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-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