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

Replace LOG_XXX with LOG_FMT_XXX #4480

Merged
merged 10 commits into from
Mar 29, 2022
Merged

Replace LOG_XXX with LOG_FMT_XXX #4480

merged 10 commits into from
Mar 29, 2022

Conversation

Lloyd-Pottiger
Copy link
Contributor

What problem does this PR solve?

Issue Number: ref #4346

Problem Summary:

What is changed and how it works?

Replace LOG_XXX with LOG_FMT_XXX

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 Mar 29, 2022

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • JaySon-Huang
  • ywqzzy

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 Mar 29, 2022
@Lloyd-Pottiger
Copy link
Contributor Author

> rg -e 'LOG_TRACE|LOG_DEBUG|LOG_INFO|LOG_WARNING|LOG_ERROR' -A 2 ./dbms | grep '<<' -B 2
--
./dbms/src/Storages/DeltaMerge/tools/workload/MainEntry.cpp:    LOG_INFO(log, s);
./dbms/src/Storages/DeltaMerge/tools/workload/MainEntry.cpp-    std::cout << s << std::endl;

Signed-off-by: Lloyd-Pottiger <yan1579196623@gmail.com>
Signed-off-by: Lloyd-Pottiger <yan1579196623@gmail.com>
@Lloyd-Pottiger
Copy link
Contributor Author

/run-all-tests

@sre-bot
Copy link
Collaborator

sre-bot commented Mar 29, 2022

Coverage for changed files

Filename                                                Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Client/ConnectionPoolWithFailover.cpp                        98                98     0.00%          13                13     0.00%         170               170     0.00%          66                66     0.00%
Common/MyTime.cpp                                          1052               207    80.32%         112                25    77.68%        2156               518    75.97%         922               257    72.13%
DataStreams/AggregatingBlockInputStream.cpp                  29                29     0.00%           5                 5     0.00%          52                52     0.00%          18                18     0.00%
DataStreams/ColumnGathererStream.cpp                         54                54     0.00%           5                 5     0.00%          76                76     0.00%          34                34     0.00%
DataStreams/ParallelAggregatingBlockInputStream.cpp         105               105     0.00%          12                12     0.00%         159               159     0.00%          70                70     0.00%
DataStreams/RemoteBlockInputStream.cpp                      117               117     0.00%          18                18     0.00%         217               217     0.00%          98                98     0.00%
Dictionaries/Embedded/RegionsHierarchies.cpp                 16                16     0.00%           1                 1     0.00%          11                11     0.00%           8                 8     0.00%
Dictionaries/ExecutableDictionarySource.cpp                  68                68     0.00%          23                23     0.00%         119               119     0.00%          20                20     0.00%
Dictionaries/HTTPDictionarySource.cpp                        59                59     0.00%          14                14     0.00%          95                95     0.00%          20                20     0.00%
Dictionaries/LibraryDictionarySource.cpp                     99                99     0.00%          13                13     0.00%         163               163     0.00%          56                56     0.00%
Flash/Mpp/MPPTunnel.cpp                                     189               189     0.00%          16                16     0.00%         241               241     0.00%          96                96     0.00%
IO/ReadWriteBufferFromHTTP.cpp                               24                24     0.00%           2                 2     0.00%          34                34     0.00%          14                14     0.00%
Interpreters/Aggregator.cpp                                2625              2625     0.00%          74                74     0.00%        1602              1602     0.00%        1204              1204     0.00%
Interpreters/InterpreterSelectQuery.cpp                     534               534     0.00%          52                52     0.00%         919               919     0.00%         440               440     0.00%
Interpreters/SharedQueries.h                                 26                26     0.00%           8                 8     0.00%         113               113     0.00%          14                14     0.00%
Interpreters/Users.cpp                                      104                76    26.92%          17                10    41.18%         168               120    28.57%          66                55    16.67%
Storages/DeltaMerge/DeltaTree.h                             549                84    84.70%          95                 6    93.68%         819                92    88.77%         306                82    73.20%
Storages/DeltaMerge/File/DMFileReader.cpp                   211                13    93.84%          12                 0   100.00%         427                23    94.61%         148                18    87.84%
Storages/Page/V2/PageFile.cpp                               561               196    65.06%          55                 3    94.55%        1010               236    76.63%         378               147    61.11%
Storages/Page/V2/gc/restoreFromCheckpoints.h                 44                38    13.64%           1                 0   100.00%          61                52    14.75%          28                24    14.29%
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                      6564              4657    29.05%         548               300    45.26%        8612              5012    41.80%        4006              2741    31.58%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
17049      9575             43.84%    191830  97043        49.41%

full coverage report (for internal network access only)

@ti-chi-bot ti-chi-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 29, 2022
@Lloyd-Pottiger Lloyd-Pottiger self-assigned this Mar 29, 2022
@ti-chi-bot ti-chi-bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Mar 29, 2022
@Lloyd-Pottiger
Copy link
Contributor Author

/cc @ywqzzy @JaySon-Huang

Co-authored-by: yanweiqi <592838129@qq.com>
Copy link
Contributor

@JaySon-Huang JaySon-Huang left a comment

Choose a reason for hiding this comment

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

lgtm with small comments

dbms/src/DataStreams/ColumnGathererStream.cpp Outdated Show resolved Hide resolved
dbms/src/Interpreters/Users.cpp Outdated Show resolved Hide resolved
@ti-chi-bot ti-chi-bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Mar 29, 2022
Signed-off-by: Lloyd-Pottiger <yan1579196623@gmail.com>
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 the status/LGT1 Indicates that a PR has LGTM 1. label Mar 29, 2022
@ti-chi-bot ti-chi-bot added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Mar 29, 2022
@Lloyd-Pottiger
Copy link
Contributor Author

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

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: 23d1b12

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

sre-bot commented Mar 29, 2022

Coverage for changed files

Filename                                                Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Client/ConnectionPoolWithFailover.cpp                        98                98     0.00%          13                13     0.00%         170               170     0.00%          66                66     0.00%
Common/MyTime.cpp                                          1052               207    80.32%         112                25    77.68%        2156               518    75.97%         922               257    72.13%
DataStreams/AggregatingBlockInputStream.cpp                  29                29     0.00%           5                 5     0.00%          52                52     0.00%          18                18     0.00%
DataStreams/ColumnGathererStream.cpp                         54                54     0.00%           5                 5     0.00%          75                75     0.00%          34                34     0.00%
DataStreams/ParallelAggregatingBlockInputStream.cpp         109               109     0.00%          12                12     0.00%         159               159     0.00%          70                70     0.00%
Dictionaries/Embedded/RegionsHierarchies.cpp                 16                16     0.00%           1                 1     0.00%          11                11     0.00%           8                 8     0.00%
Dictionaries/HTTPDictionarySource.cpp                        59                59     0.00%          14                14     0.00%          95                95     0.00%          20                20     0.00%
Interpreters/InterpreterSelectQuery.cpp                     534               534     0.00%          52                52     0.00%         919               919     0.00%         440               440     0.00%
Interpreters/SharedQueries.h                                 27                27     0.00%           9                 9     0.00%         114               114     0.00%          14                14     0.00%
Interpreters/Users.cpp                                      104                76    26.92%          17                10    41.18%         172               124    27.91%          66                55    16.67%
Storages/DeltaMerge/DeltaTree.h                             547                84    84.64%          95                 6    93.68%         818                92    88.75%         304                81    73.36%
Storages/Page/V2/PageFile.cpp                               561               196    65.06%          55                 3    94.55%        1010               236    76.63%         378               147    61.11%
Storages/Page/V2/gc/restoreFromCheckpoints.h                 44                38    13.64%           1                 0   100.00%          61                52    14.75%          28                24    14.29%
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                      3234              1527    52.78%         391               155    60.36%        5812              2617    54.97%        2368              1234    47.89%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
17050      9576             43.84%    191834  97051        49.41%

full coverage report (for internal network access only)

@ti-chi-bot ti-chi-bot merged commit 5b00cc6 into pingcap:master Mar 29, 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/XL Denotes a PR that changes 500-999 lines, ignoring generated files. status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants