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

*: Add some comments about decoding #5158

Merged
merged 3 commits into from
Jun 18, 2022

Conversation

JaySon-Huang
Copy link
Contributor

@JaySon-Huang JaySon-Huang commented Jun 16, 2022

Signed-off-by: JaySon-Huang jayson.hjs@gmail.com

What problem does this PR solve?

Issue Number: ref #4862

What is changed and how it works?

  • Add some comments about decoding row data

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 Jun 16, 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/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jun 16, 2022
@JaySon-Huang
Copy link
Contributor Author

/run-all-tests

@sre-bot
Copy link
Collaborator

sre-bot commented Jun 16, 2022

Coverage for changed files

Filename                                                 Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Debug/dbgFuncMockRaftSnapshot.cpp                            168               164     2.38%          23                21     8.70%         541               520     3.88%         114               113     0.88%
Storages/Page/V3/tests/gtest_blob_store.cpp                 5488              1185    78.41%          27                 1    96.30%        1180                66    94.41%        1698               849    50.00%
Storages/Transaction/DecodingStorageSchemaSnapshot.h          33                 1    96.97%           1                 0   100.00%          61                 1    98.36%          26                 2    92.31%
Storages/Transaction/PartitionStreams.cpp                    255               188    26.27%          17                 8    52.94%         528               318    39.77%         134               108    19.40%
Storages/Transaction/RegionBlockReader.cpp                    69                22    68.12%           3                 0   100.00%         147                22    85.03%          52                19    63.46%
Storages/Transaction/RowCodec.cpp                            243                33    86.42%          19                 0   100.00%         390                58    85.13%         204                45    77.94%
Storages/Transaction/TiKVRecordFormat.h                       96                10    89.58%          37                 1    97.30%         257                18    93.00%          42                 5    88.10%
Storages/Transaction/tests/gtest_kvstore.cpp                3645               715    80.38%          26                 2    92.31%        1249                30    97.60%        1084               574    47.05%
Storages/Transaction/tests/region_helper.h                     4                 0   100.00%           4                 0   100.00%          29                 0   100.00%           0                 0         -
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                      10001              2318    76.82%         157                33    78.98%        4382              1033    76.43%        3354              1715    48.87%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18327      9653             47.33%    205849  96653        53.05%

full coverage report (for internal network access only)

@JaySon-Huang
Copy link
Contributor Author

/run-all-tests

1 similar comment
@JaySon-Huang
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 the status/LGT1 Indicates that a PR has LGTM 1. label Jun 16, 2022
@JaySon-Huang
Copy link
Contributor Author

/run-all-tests

@sre-bot
Copy link
Collaborator

sre-bot commented Jun 17, 2022

Coverage for changed files

Filename                                                 Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Debug/dbgFuncMockRaftSnapshot.cpp                            168               164     2.38%          23                21     8.70%         541               520     3.88%         114               113     0.88%
Storages/Page/V3/tests/gtest_blob_store.cpp                 5488              1185    78.41%          27                 1    96.30%        1180                66    94.41%        1698               849    50.00%
Storages/Transaction/DecodingStorageSchemaSnapshot.h          33                 1    96.97%           1                 0   100.00%          61                 1    98.36%          26                 2    92.31%
Storages/Transaction/PartitionStreams.cpp                    255               188    26.27%          17                 8    52.94%         528               318    39.77%         134               108    19.40%
Storages/Transaction/RegionBlockReader.cpp                    69                22    68.12%           3                 0   100.00%         147                22    85.03%          52                19    63.46%
Storages/Transaction/RowCodec.cpp                            243                33    86.42%          19                 0   100.00%         390                58    85.13%         204                45    77.94%
Storages/Transaction/TiKVRecordFormat.h                       96                10    89.58%          37                 1    97.30%         257                18    93.00%          42                 5    88.10%
Storages/Transaction/tests/gtest_kvstore.cpp                3645               715    80.38%          26                 2    92.31%        1249                30    97.60%        1084               574    47.05%
Storages/Transaction/tests/region_helper.h                     4                 0   100.00%           4                 0   100.00%          29                 0   100.00%           0                 0         -
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                      10001              2318    76.82%         157                33    78.98%        4382              1033    76.43%        3354              1715    48.87%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18327      9653             47.33%    205849  96659        53.04%

full coverage report (for internal network access only)

Signed-off-by: JaySon-Huang <jayson.hjs@gmail.com>
@JaySon-Huang
Copy link
Contributor Author

/run-all-tests

@JaySon-Huang
Copy link
Contributor Author

/cc @windtalker @hongyunyan @breezewish

@ti-chi-bot
Copy link
Member

@JaySon-Huang: GitHub didn't allow me to request PR reviews from the following users: hongyunyan.

Note that only pingcap members and repo collaborators can review this PR, and authors cannot review their own PRs.

In response to this:

/cc @windtalker @hongyunyan @breezewish

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 kubernetes/test-infra repository.

@sre-bot
Copy link
Collaborator

sre-bot commented Jun 17, 2022

Coverage for changed files

Filename                                                 Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Debug/dbgFuncMockRaftSnapshot.cpp                            168               164     2.38%          23                21     8.70%         541               520     3.88%         114               113     0.88%
Storages/Page/V3/tests/gtest_blob_store.cpp                 5488              1185    78.41%          27                 1    96.30%        1180                66    94.41%        1698               849    50.00%
Storages/Transaction/DecodingStorageSchemaSnapshot.h          33                 1    96.97%           1                 0   100.00%          61                 1    98.36%          26                 2    92.31%
Storages/Transaction/PartitionStreams.cpp                    252               185    26.59%          17                 8    52.94%         512               310    39.45%         134               108    19.40%
Storages/Transaction/RegionBlockReader.cpp                    69                22    68.12%           3                 0   100.00%         147                22    85.03%          52                19    63.46%
Storages/Transaction/RowCodec.cpp                            243                33    86.42%          19                 0   100.00%         390                58    85.13%         204                45    77.94%
Storages/Transaction/TiKVRecordFormat.h                       96                10    89.58%          37                 1    97.30%         257                18    93.00%          42                 5    88.10%
Storages/Transaction/tests/gtest_kvstore.cpp                3645               715    80.38%          26                 2    92.31%        1249                30    97.60%        1084               574    47.05%
Storages/Transaction/tests/region_helper.h                     4                 0   100.00%           4                 0   100.00%          29                 0   100.00%           0                 0         -
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                       9998              2315    76.85%         157                33    78.98%        4366              1025    76.52%        3354              1715    48.87%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18335      9653             47.35%    206063  96620        53.11%

full coverage report (for internal network access only)

@hongyunyan
Copy link
Contributor

LGTM

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.

Approving as there is no logic changes.

@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 Jun 17, 2022
@breezewish
Copy link
Member

/merge

@ti-chi-bot
Copy link
Member

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

/run-all-tests

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

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

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

@ti-chi-bot
Copy link
Member

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

Commit hash: dfe31a2

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

sre-bot commented Jun 17, 2022

Coverage for changed files

Filename                                                 Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Debug/dbgFuncMockRaftSnapshot.cpp                            168               164     2.38%          23                21     8.70%         541               520     3.88%         114               113     0.88%
Storages/Page/V3/tests/gtest_blob_store.cpp                 5488              1185    78.41%          27                 1    96.30%        1180                66    94.41%        1698               849    50.00%
Storages/Transaction/DecodingStorageSchemaSnapshot.h          33                 1    96.97%           1                 0   100.00%          61                 1    98.36%          26                 2    92.31%
Storages/Transaction/PartitionStreams.cpp                    252               185    26.59%          17                 8    52.94%         512               310    39.45%         134               108    19.40%
Storages/Transaction/RegionBlockReader.cpp                    69                22    68.12%           3                 0   100.00%         147                22    85.03%          52                19    63.46%
Storages/Transaction/RowCodec.cpp                            243                33    86.42%          19                 0   100.00%         390                58    85.13%         204                45    77.94%
Storages/Transaction/TiKVRecordFormat.h                       96                10    89.58%          37                 1    97.30%         257                18    93.00%          42                 5    88.10%
Storages/Transaction/tests/gtest_kvstore.cpp                3645               715    80.38%          26                 2    92.31%        1249                30    97.60%        1084               574    47.05%
Storages/Transaction/tests/region_helper.h                     4                 0   100.00%           4                 0   100.00%          29                 0   100.00%           0                 0         -
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                       9998              2315    76.85%         157                33    78.98%        4366              1025    76.52%        3354              1715    48.87%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18335      9653             47.35%    206063  96620        53.11%

full coverage report (for internal network access only)

@breezewish
Copy link
Member

/run-integration-test

1 similar comment
@JaySon-Huang
Copy link
Contributor Author

/run-integration-test

Signed-off-by: JaySon-Huang <jayson.hjs@gmail.com>
@ti-chi-bot ti-chi-bot removed the status/can-merge Indicates a PR has been approved by a committer. label Jun 18, 2022
@JaySon-Huang
Copy link
Contributor Author

/merge

@ti-chi-bot
Copy link
Member

@JaySon-Huang: 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: bfc5cd6

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

sre-bot commented Jun 18, 2022

Coverage for changed files

Filename                                                 Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Debug/dbgFuncMockRaftSnapshot.cpp                            168               164     2.38%          23                21     8.70%         541               520     3.88%         114               113     0.88%
Storages/Page/V3/tests/gtest_blob_store.cpp                 5488              1185    78.41%          27                 1    96.30%        1180                66    94.41%        1698               849    50.00%
Storages/Transaction/DecodingStorageSchemaSnapshot.h          33                 1    96.97%           1                 0   100.00%          61                 1    98.36%          26                 2    92.31%
Storages/Transaction/PartitionStreams.cpp                    252               185    26.59%          17                 8    52.94%         512               310    39.45%         134               108    19.40%
Storages/Transaction/RegionBlockReader.cpp                    69                22    68.12%           3                 0   100.00%         147                22    85.03%          52                19    63.46%
Storages/Transaction/RowCodec.cpp                            243                33    86.42%          19                 0   100.00%         390                58    85.13%         204                45    77.94%
Storages/Transaction/TiKVRecordFormat.h                       96                10    89.58%          37                 1    97.30%         257                18    93.00%          42                 5    88.10%
Storages/Transaction/tests/gtest_kvstore.cpp                3645               715    80.38%          26                 2    92.31%        1249                30    97.60%        1084               574    47.05%
Storages/Transaction/tests/region_helper.h                     4                 0   100.00%           4                 0   100.00%          29                 0   100.00%           0                 0         -
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                       9998              2315    76.85%         157                33    78.98%        4366              1025    76.52%        3354              1715    48.87%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18335      9653             47.35%    206063  96645        53.10%

full coverage report (for internal network access only)

Signed-off-by: JaySon-Huang <jayson.hjs@gmail.com>
@ti-chi-bot ti-chi-bot removed the status/can-merge Indicates a PR has been approved by a committer. label Jun 18, 2022
@JaySon-Huang
Copy link
Contributor Author

/run-all-tests

@sre-bot
Copy link
Collaborator

sre-bot commented Jun 18, 2022

Coverage for changed files

Filename                                                 Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Debug/dbgFuncMockRaftSnapshot.cpp                            168               164     2.38%          23                21     8.70%         541               520     3.88%         114               113     0.88%
Storages/Page/V3/tests/gtest_blob_store.cpp                 5488              1185    78.41%          27                 1    96.30%        1180                66    94.41%        1698               849    50.00%
Storages/Transaction/DecodingStorageSchemaSnapshot.h          33                 1    96.97%           1                 0   100.00%          61                 1    98.36%          26                 2    92.31%
Storages/Transaction/PartitionStreams.cpp                    252               185    26.59%          17                 8    52.94%         512               310    39.45%         134               108    19.40%
Storages/Transaction/RegionBlockReader.cpp                    69                22    68.12%           3                 0   100.00%         147                22    85.03%          52                19    63.46%
Storages/Transaction/RowCodec.cpp                            243                33    86.42%          19                 0   100.00%         390                58    85.13%         204                45    77.94%
Storages/Transaction/TiKVRecordFormat.h                       96                10    89.58%          37                 1    97.30%         257                18    93.00%          42                 5    88.10%
Storages/Transaction/tests/gtest_kvstore.cpp                3645               715    80.38%          26                 2    92.31%        1249                30    97.60%        1084               574    47.05%
Storages/Transaction/tests/region_helper.h                     4                 0   100.00%           4                 0   100.00%          29                 0   100.00%           0                 0         -
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                       9998              2315    76.85%         157                33    78.98%        4366              1025    76.52%        3354              1715    48.87%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18335      9653             47.35%    206063  96658        53.09%

full coverage report (for internal network access only)

@@ -21,6 +21,7 @@ mysql> insert into test.t values(1,'a'),(2,'b'),(3,'c')
mysql> alter table test.t set tiflash replica 1

func> wait_table test t
mysql> analyze table test.t
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Add this line to fix the error caused by tidb execute plan change

[2022-06-17T17:32:18.320Z]   File: fullstack-test/mpp/mpp_fail.test
[2022-06-17T17:32:18.320Z]   Error line: 30
[2022-06-17T17:32:18.320Z]   Error: use test; set @@tidb_isolation_read_engines='tiflash'; set @@tidb_allow_mpp=1; select count(value), id from t group by id;
[2022-06-17T17:32:18.320Z]   Result:
[2022-06-17T17:32:18.320Z]     count(value)	id
[2022-06-17T17:32:18.320Z]     1	2
[2022-06-17T17:32:18.320Z]     1	3
[2022-06-17T17:32:18.320Z]     1	1
[2022-06-17T17:32:18.320Z]   Expected:
[2022-06-17T17:32:18.320Z]     ERROR 1105 (HY000) at line 1: DB::Exception: Fail point FailPoints::exception_before_mpp_register_non_root_mpp_task is triggered.

@JaySon-Huang
Copy link
Contributor Author

/merge

@ti-chi-bot
Copy link
Member

@JaySon-Huang: 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: 64d1213

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

sre-bot commented Jun 18, 2022

Coverage for changed files

Filename                                                 Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Debug/dbgFuncMockRaftSnapshot.cpp                            168               164     2.38%          23                21     8.70%         541               520     3.88%         114               113     0.88%
Storages/Page/V3/tests/gtest_blob_store.cpp                 5488              1185    78.41%          27                 1    96.30%        1180                66    94.41%        1698               849    50.00%
Storages/Transaction/DecodingStorageSchemaSnapshot.h          33                 1    96.97%           1                 0   100.00%          61                 1    98.36%          26                 2    92.31%
Storages/Transaction/PartitionStreams.cpp                    252               185    26.59%          17                 8    52.94%         512               310    39.45%         134               108    19.40%
Storages/Transaction/RegionBlockReader.cpp                    69                22    68.12%           3                 0   100.00%         147                22    85.03%          52                19    63.46%
Storages/Transaction/RowCodec.cpp                            243                33    86.42%          19                 0   100.00%         390                58    85.13%         204                45    77.94%
Storages/Transaction/TiKVRecordFormat.h                       96                10    89.58%          37                 1    97.30%         257                18    93.00%          42                 5    88.10%
Storages/Transaction/tests/gtest_kvstore.cpp                3645               715    80.38%          26                 2    92.31%        1249                30    97.60%        1084               574    47.05%
Storages/Transaction/tests/region_helper.h                     4                 0   100.00%           4                 0   100.00%          29                 0   100.00%           0                 0         -
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                       9998              2315    76.85%         157                33    78.98%        4366              1025    76.52%        3354              1715    48.87%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18335      9653             47.35%    206063  96628        53.11%

full coverage report (for internal network access only)

@ti-chi-bot ti-chi-bot merged commit 164eda5 into pingcap:master Jun 18, 2022
@JaySon-Huang JaySon-Huang deleted the comments_decoding branch June 18, 2022 09:17
SeaRise added a commit to SeaRise/tiflash that referenced this pull request Jun 21, 2022
SeaRise added a commit to SeaRise/tiflash that referenced this pull request Jun 22, 2022
fmt

revert

fix executor test

format

fix tests

fix ut

fix projection bug

format

update

revert useless change

fix test from pingcap#5158 (comment)
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/L Denotes a PR that changes 100-499 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.

6 participants