Skip to content

Remove useless code#5004

Merged
ti-chi-bot merged 14 commits intopingcap:masterfrom
hongyunyan:hongyunyan_remove_uselss_code
May 31, 2022
Merged

Remove useless code#5004
ti-chi-bot merged 14 commits intopingcap:masterfrom
hongyunyan:hongyunyan_remove_uselss_code

Conversation

@hongyunyan
Copy link
Contributor

@hongyunyan hongyunyan commented May 26, 2022

What problem does this PR solve?

Issue Number: close #4998

Problem Summary:

Remove parts of codes that are not in use.

What is changed and how it works?

Remove parts of codes that are not in use, Including :

  1. TiDB::SnapshotApplyMethod::Block related code (Issue 4998)
  2. TMTContext::setSchemaSyncer
  3. RegionBlockReader::setFilter
  4. RegionScanFilter
  5. Region::handleIngestSSTInMemory
  6. RegionTable::readBlockByRegion

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 May 26, 2022

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • JaySon-Huang
  • Lloyd-Pottiger

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

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

Details

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 the release-note-none Denotes a PR that doesn't merit a release note. label May 26, 2022
@sre-bot
Copy link
Collaborator

sre-bot commented May 26, 2022

CLA assistant check
All committers have signed the CLA.

@ti-chi-bot ti-chi-bot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label May 26, 2022
@JaySon-Huang
Copy link
Contributor

Also should remove the raft.snapshot config item from etc/config-template.toml

[raft.snapshot]
# The way to apply snapshot data
# The value is one of "block" / "file1"
# method = "file1"

return data_list_to_remove;
}

RegionID RegionTable::pickRegionToFlush()
Copy link
Contributor

@JaySon-Huang JaySon-Huang May 26, 2022

Choose a reason for hiding this comment

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

After removing this method, can we also remove dirty_regions and shouldFlush?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can remove shouldFlush function,but dirty_regions is still be used in function like tryFlushRegion

@hongyunyan
Copy link
Contributor Author

/run-unit-test

@hongyunyan
Copy link
Contributor Author

/run-unit-test

@sre-bot
Copy link
Collaborator

sre-bot commented May 26, 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%         139                75    46.04%          14                14     0.00%
Debug/dbgFuncRegion.cpp                               91                91     0.00%          12                12     0.00%         242               242     0.00%          62                62     0.00%
Server/RaftConfigParser.cpp                           70                70     0.00%           4                 4     0.00%          85                85     0.00%          40                40     0.00%
Storages/Transaction/ApplySnapshot.cpp               260               260     0.00%          12                12     0.00%         412               412     0.00%         130               130     0.00%
Storages/Transaction/KVStore.h                         5                 3    40.00%           5                 3    40.00%           5                 3    40.00%           0                 0         -
Storages/Transaction/PartitionStreams.cpp            253               209    17.39%          17                10    41.18%         512               350    31.64%         134               115    14.18%
Storages/Transaction/ProxyFFI.cpp                    174               124    28.74%          41                25    39.02%         346               257    25.72%          68                40    41.18%
Storages/Transaction/ProxyFFI.h                        3                 2    33.33%           3                 2    33.33%          25                24     4.00%           0                 0         -
Storages/Transaction/Region.cpp                      313                44    85.94%          59                 2    96.61%         632                45    92.88%         170                57    66.47%
Storages/Transaction/Region.h                         20                 2    90.00%          10                 2    80.00%          28                 2    92.86%          14                 4    71.43%
Storages/Transaction/RegionBlockReader.cpp            69                22    68.12%           3                 0   100.00%         147                22    85.03%          52                19    63.46%
Storages/Transaction/RegionTable.cpp                 244               115    52.87%          24                 6    75.00%         302               105    65.23%         102                64    37.25%
Storages/Transaction/RegionTable.h                    15                 9    40.00%          15                 9    40.00%          30                24    20.00%           0                 0         -
Storages/Transaction/StorageEngineType.h               5                 5     0.00%           1                 1     0.00%          12                12     0.00%           6                 6     0.00%
Storages/Transaction/TMTContext.cpp                   52                35    32.69%          33                17    48.48%         145                95    34.48%          12                11     8.33%
Storages/Transaction/TMTContext.h                      3                 2    33.33%           3                 2    33.33%           3                 2    33.33%           0                 0         -
Storages/Transaction/tests/gtest_kvstore.cpp        3402               613    81.98%          24                 2    91.67%        1086                29    97.33%        1018               532    47.74%
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                               5009              1635    67.36%         276               118    57.25%        4151              1784    57.02%        1822              1094    39.96%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18244      9775             46.42%    204178  98023        51.99%

full coverage report (for internal network access only)

@hongyunyan
Copy link
Contributor Author

/run-integration-test

@breezewish
Copy link
Member

/run-all-tests

@sre-bot
Copy link
Collaborator

sre-bot commented May 26, 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%         139                75    46.04%          14                14     0.00%
Debug/dbgFuncRegion.cpp                               91                91     0.00%          12                12     0.00%         242               242     0.00%          62                62     0.00%
Server/RaftConfigParser.cpp                           70                70     0.00%           4                 4     0.00%          85                85     0.00%          40                40     0.00%
Storages/Transaction/ApplySnapshot.cpp               260               260     0.00%          12                12     0.00%         412               412     0.00%         130               130     0.00%
Storages/Transaction/KVStore.h                         5                 3    40.00%           5                 3    40.00%           5                 3    40.00%           0                 0         -
Storages/Transaction/PartitionStreams.cpp            253               209    17.39%          17                10    41.18%         512               350    31.64%         134               115    14.18%
Storages/Transaction/ProxyFFI.cpp                    174               124    28.74%          41                25    39.02%         346               257    25.72%          68                40    41.18%
Storages/Transaction/ProxyFFI.h                        3                 2    33.33%           3                 2    33.33%          25                24     4.00%           0                 0         -
Storages/Transaction/Region.cpp                      313                44    85.94%          59                 2    96.61%         632                45    92.88%         170                57    66.47%
Storages/Transaction/Region.h                         20                 2    90.00%          10                 2    80.00%          28                 2    92.86%          14                 4    71.43%
Storages/Transaction/RegionBlockReader.cpp            69                22    68.12%           3                 0   100.00%         147                22    85.03%          52                19    63.46%
Storages/Transaction/RegionTable.cpp                 244               115    52.87%          24                 6    75.00%         302               105    65.23%         102                64    37.25%
Storages/Transaction/RegionTable.h                    15                 9    40.00%          15                 9    40.00%          30                24    20.00%           0                 0         -
Storages/Transaction/StorageEngineType.h               5                 5     0.00%           1                 1     0.00%          12                12     0.00%           6                 6     0.00%
Storages/Transaction/TMTContext.cpp                   52                35    32.69%          33                17    48.48%         145                95    34.48%          12                11     8.33%
Storages/Transaction/TMTContext.h                      3                 2    33.33%           3                 2    33.33%           3                 2    33.33%           0                 0         -
Storages/Transaction/tests/gtest_kvstore.cpp        3402               613    81.98%          24                 2    91.67%        1086                29    97.33%        1018               532    47.74%
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                               5009              1635    67.36%         276               118    57.25%        4151              1784    57.02%        1822              1094    39.96%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18244      9777             46.41%    204178  98047        51.98%

full coverage report (for internal network access only)

@hongyunyan
Copy link
Contributor Author

/run-all-tests

@hongyunyan
Copy link
Contributor Author

/run-unit-test

@sre-bot
Copy link
Collaborator

sre-bot commented May 26, 2022

Coverage for changed files

Filename                                         Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Debug/dbgFuncRegion.cpp                               92                92     0.00%          13                13     0.00%         247               247     0.00%          62                62     0.00%
Server/RaftConfigParser.cpp                           70                70     0.00%           4                 4     0.00%          85                85     0.00%          40                40     0.00%
Storages/Transaction/ApplySnapshot.cpp               260               260     0.00%          12                12     0.00%         412               412     0.00%         130               130     0.00%
Storages/Transaction/KVStore.h                         5                 3    40.00%           5                 3    40.00%           5                 3    40.00%           0                 0         -
Storages/Transaction/PartitionStreams.cpp            253               209    17.39%          17                10    41.18%         512               350    31.64%         134               115    14.18%
Storages/Transaction/ProxyFFI.cpp                    174               124    28.74%          41                25    39.02%         346               257    25.72%          68                40    41.18%
Storages/Transaction/ProxyFFI.h                        3                 2    33.33%           3                 2    33.33%          25                24     4.00%           0                 0         -
Storages/Transaction/Region.cpp                      313                44    85.94%          59                 2    96.61%         632                45    92.88%         170                57    66.47%
Storages/Transaction/Region.h                         20                 2    90.00%          10                 2    80.00%          28                 2    92.86%          14                 4    71.43%
Storages/Transaction/RegionBlockReader.cpp            69                22    68.12%           3                 0   100.00%         147                22    85.03%          52                19    63.46%
Storages/Transaction/RegionTable.h                    15                 9    40.00%          15                 9    40.00%          30                24    20.00%           0                 0         -
Storages/Transaction/StorageEngineType.h               5                 5     0.00%           1                 1     0.00%          12                12     0.00%           6                 6     0.00%
Storages/Transaction/TMTContext.cpp                   52                35    32.69%          33                17    48.48%         145                95    34.48%          12                11     8.33%
Storages/Transaction/TMTContext.h                      3                 2    33.33%           3                 2    33.33%           3                 2    33.33%           0                 0         -
Storages/Transaction/tests/gtest_kvstore.cpp        3402               613    81.98%          24                 2    91.67%        1086                29    97.33%        1018               532    47.74%
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                               4736              1492    68.50%         243               104    57.20%        3715              1609    56.69%        1706              1016    40.45%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18247      9780             46.40%    204223  98098        51.97%

full coverage report (for internal network access only)

Copy link
Contributor

@Lloyd-Pottiger Lloyd-Pottiger left a comment

Choose a reason for hiding this comment

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

LGTM

@ti-chi-bot ti-chi-bot added the status/LGT1 Indicates that a PR has LGTM 1. label May 27, 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 May 30, 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 May 30, 2022
@hongyunyan
Copy link
Contributor Author

/run-all-tests

@sre-bot
Copy link
Collaborator

sre-bot commented May 30, 2022

Coverage for changed files

Filename                                         Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Debug/dbgFuncRegion.cpp                               92                92     0.00%          13                13     0.00%         247               247     0.00%          62                62     0.00%
Server/RaftConfigParser.cpp                           70                70     0.00%           4                 4     0.00%          85                85     0.00%          40                40     0.00%
Storages/Transaction/ApplySnapshot.cpp               260               163    37.31%          12                 3    75.00%         412               247    40.05%         130                97    25.38%
Storages/Transaction/KVStore.h                         6                 4    33.33%           6                 4    33.33%           8                 6    25.00%           0                 0         -
Storages/Transaction/PartitionStreams.cpp            253               186    26.48%          17                 8    52.94%         512               310    39.45%         134               108    19.40%
Storages/Transaction/ProxyFFI.cpp                    174               110    36.78%          41                24    41.46%         346               235    32.08%          68                31    54.41%
Storages/Transaction/ProxyFFI.h                        3                 2    33.33%           3                 2    33.33%          25                24     4.00%           0                 0         -
Storages/Transaction/Region.cpp                      313                44    85.94%          59                 2    96.61%         632                45    92.88%         170                57    66.47%
Storages/Transaction/Region.h                         20                 2    90.00%          10                 2    80.00%          28                 2    92.86%          14                 4    71.43%
Storages/Transaction/RegionBlockReader.cpp            69                22    68.12%           3                 0   100.00%         147                22    85.03%          52                19    63.46%
Storages/Transaction/RegionTable.h                    15                 7    53.33%          15                 7    53.33%          30                22    26.67%           0                 0         -
Storages/Transaction/StorageEngineType.h               5                 5     0.00%           1                 1     0.00%          12                12     0.00%           6                 6     0.00%
Storages/Transaction/TMTContext.cpp                   52                35    32.69%          33                17    48.48%         145                95    34.48%          12                11     8.33%
Storages/Transaction/TMTContext.h                      3                 2    33.33%           3                 2    33.33%           3                 2    33.33%           0                 0         -
Storages/Transaction/tests/gtest_kvstore.cpp        3560               655    81.60%          24                 2    91.67%        1214                30    97.53%        1066               559    47.56%
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                               4895              1399    71.42%         244                91    62.70%        3846              1384    64.01%        1754               994    43.33%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18272      9784             46.45%    204675  98101        52.07%

full coverage report (for internal network access only)

@hongyunyan
Copy link
Contributor Author

/run-all-tests

@sre-bot
Copy link
Collaborator

sre-bot commented May 30, 2022

Coverage for changed files

Filename                                         Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Debug/dbgFuncRegion.cpp                               92                92     0.00%          13                13     0.00%         247               247     0.00%          62                62     0.00%
Server/RaftConfigParser.cpp                           70                70     0.00%           4                 4     0.00%          85                85     0.00%          40                40     0.00%
Storages/Transaction/ApplySnapshot.cpp               260               142    45.38%          12                 0   100.00%         412               184    55.34%         130                91    30.00%
Storages/Transaction/KVStore.h                         6                 4    33.33%           6                 4    33.33%           8                 6    25.00%           0                 0         -
Storages/Transaction/PartitionStreams.cpp            253               186    26.48%          17                 8    52.94%         512               310    39.45%         134               108    19.40%
Storages/Transaction/ProxyFFI.cpp                    174               110    36.78%          41                24    41.46%         346               235    32.08%          68                31    54.41%
Storages/Transaction/ProxyFFI.h                        3                 2    33.33%           3                 2    33.33%          25                24     4.00%           0                 0         -
Storages/Transaction/Region.cpp                      313                31    90.10%          59                 1    98.31%         632                27    95.73%         170                53    68.82%
Storages/Transaction/Region.h                         20                 2    90.00%          10                 2    80.00%          28                 2    92.86%          14                 4    71.43%
Storages/Transaction/RegionBlockReader.cpp            69                22    68.12%           3                 0   100.00%         147                22    85.03%          52                19    63.46%
Storages/Transaction/RegionTable.h                    15                 7    53.33%          15                 7    53.33%          30                22    26.67%           0                 0         -
Storages/Transaction/StorageEngineType.h               5                 5     0.00%           1                 1     0.00%          12                12     0.00%           6                 6     0.00%
Storages/Transaction/TMTContext.cpp                   52                35    32.69%          33                17    48.48%         145                95    34.48%          12                11     8.33%
Storages/Transaction/TMTContext.h                      3                 2    33.33%           3                 2    33.33%           3                 2    33.33%           0                 0         -
Storages/Transaction/tests/gtest_kvstore.cpp        3560               655    81.60%          24                 2    91.67%        1241                30    97.58%        1066               559    47.56%
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                               4895              1365    72.11%         244                87    64.34%        3873              1303    66.36%        1754               984    43.90%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18272      9780             46.48%    204702  98038        52.11%

full coverage report (for internal network access only)

@hongyunyan hongyunyan requested a review from JaySon-Huang May 30, 2022 10:19
@hongyunyan
Copy link
Contributor Author

/run-all-tests

@hongyunyan
Copy link
Contributor Author

/run-all-tests

@sre-bot
Copy link
Collaborator

sre-bot commented May 31, 2022

Coverage for changed files

Filename                                         Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Debug/dbgFuncRegion.cpp                               92                92     0.00%          13                13     0.00%         247               247     0.00%          62                62     0.00%
Server/RaftConfigParser.cpp                           70                70     0.00%           4                 4     0.00%          85                85     0.00%          40                40     0.00%
Storages/Transaction/ApplySnapshot.cpp               260               142    45.38%          12                 0   100.00%         412               184    55.34%         130                91    30.00%
Storages/Transaction/KVStore.h                         6                 4    33.33%           6                 4    33.33%           8                 6    25.00%           0                 0         -
Storages/Transaction/PartitionStreams.cpp            253               186    26.48%          17                 8    52.94%         512               310    39.45%         134               108    19.40%
Storages/Transaction/ProxyFFI.cpp                    174               110    36.78%          41                24    41.46%         346               235    32.08%          68                31    54.41%
Storages/Transaction/ProxyFFI.h                        3                 2    33.33%           3                 2    33.33%          25                24     4.00%           0                 0         -
Storages/Transaction/Region.cpp                      313                31    90.10%          59                 1    98.31%         632                27    95.73%         170                53    68.82%
Storages/Transaction/Region.h                         20                 2    90.00%          10                 2    80.00%          28                 2    92.86%          14                 4    71.43%
Storages/Transaction/RegionBlockReader.cpp            69                22    68.12%           3                 0   100.00%         147                22    85.03%          52                19    63.46%
Storages/Transaction/RegionTable.h                    15                 7    53.33%          15                 7    53.33%          30                22    26.67%           0                 0         -
Storages/Transaction/StorageEngineType.h               5                 5     0.00%           1                 1     0.00%          12                12     0.00%           6                 6     0.00%
Storages/Transaction/TMTContext.cpp                   52                35    32.69%          33                17    48.48%         145                95    34.48%          12                11     8.33%
Storages/Transaction/TMTContext.h                      3                 2    33.33%           3                 2    33.33%           3                 2    33.33%           0                 0         -
Storages/Transaction/tests/gtest_kvstore.cpp        3646               715    80.39%          27                 2    92.59%        1254                30    97.61%        1084               574    47.05%
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                               4981              1425    71.39%         247                87    64.78%        3886              1303    66.47%        1772               999    43.62%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18275      9780             46.48%    204721  98030        52.12%

full coverage report (for internal network access only)

Copy link
Contributor

@JaySon-Huang JaySon-Huang left a comment

Choose a reason for hiding this comment

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

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 May 31, 2022
@hongyunyan
Copy link
Contributor Author

/run-all-tests

@Lloyd-Pottiger
Copy link
Contributor

/merge

@ti-chi-bot
Copy link
Member

@Lloyd-Pottiger: 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.

Details

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.

DetailsCommit hash: a5f1ae7

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label May 31, 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.

Details

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

@hongyunyan: /merge is only allowed for the committers, you can assign this pull request to the committer in list by filling /assign @committer in the comment to help merge this pull request.

Details

In response to this:

/merge

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 May 31, 2022

Coverage for changed files

Filename                                         Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Debug/dbgFuncRegion.cpp                               92                92     0.00%          13                13     0.00%         247               247     0.00%          62                62     0.00%
Server/RaftConfigParser.cpp                           70                70     0.00%           4                 4     0.00%          85                85     0.00%          40                40     0.00%
Storages/Transaction/ApplySnapshot.cpp               260               142    45.38%          12                 0   100.00%         412               184    55.34%         130                91    30.00%
Storages/Transaction/KVStore.h                         6                 4    33.33%           6                 4    33.33%           8                 6    25.00%           0                 0         -
Storages/Transaction/PartitionStreams.cpp            253               186    26.48%          17                 8    52.94%         512               310    39.45%         134               108    19.40%
Storages/Transaction/ProxyFFI.cpp                    174               110    36.78%          41                24    41.46%         346               235    32.08%          68                31    54.41%
Storages/Transaction/ProxyFFI.h                        3                 2    33.33%           3                 2    33.33%          25                24     4.00%           0                 0         -
Storages/Transaction/Region.cpp                      313                31    90.10%          59                 1    98.31%         632                27    95.73%         170                53    68.82%
Storages/Transaction/Region.h                         20                 2    90.00%          10                 2    80.00%          28                 2    92.86%          14                 4    71.43%
Storages/Transaction/RegionBlockReader.cpp            69                22    68.12%           3                 0   100.00%         147                22    85.03%          52                19    63.46%
Storages/Transaction/RegionTable.h                    15                 7    53.33%          15                 7    53.33%          30                22    26.67%           0                 0         -
Storages/Transaction/StorageEngineType.h               5                 5     0.00%           1                 1     0.00%          12                12     0.00%           6                 6     0.00%
Storages/Transaction/TMTContext.cpp                   52                35    32.69%          33                17    48.48%         145                95    34.48%          12                11     8.33%
Storages/Transaction/TMTContext.h                      3                 2    33.33%           3                 2    33.33%           3                 2    33.33%           0                 0         -
Storages/Transaction/tests/gtest_kvstore.cpp        3646               715    80.39%          27                 2    92.59%        1254                30    97.61%        1084               574    47.05%
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                               4981              1425    71.39%         247                87    64.78%        3886              1303    66.47%        1772               999    43.62%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18275      9780             46.48%    204721  98032        52.11%

full coverage report (for internal network access only)

@ti-chi-bot ti-chi-bot merged commit 6afdd74 into pingcap:master May 31, 2022
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.

Remove deprecated apply snapshot method

6 participants