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

*: optimize log and make their specification consistent (#2853) #2903

Merged
merged 1 commit into from
Sep 7, 2020

Conversation

ti-srebot
Copy link
Contributor

cherry-pick #2853 to release-4.0


What problem does this PR solve?

Related to #2704.

What is changed and how it works?

This PR does some optimization for the error log by defining the error when we first meet it.

Check List

Tests

  • Unit test

Related changes

  • Need to cherry-pick to the release branch

Release note

Copy link
Member

@JmPotato JmPotato 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-srebot ti-srebot added status/LGT1 Indicates that a PR has LGTM 1. and removed status/LGT2 Indicates that a PR has LGTM 2. labels Sep 7, 2020
@ti-srebot ti-srebot added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Sep 7, 2020
Copy link
Contributor

@Yisaer Yisaer 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-srebot ti-srebot added status/LGT3 The PR has already had 3 LGTM. and removed status/LGT2 Indicates that a PR has LGTM 2. labels Sep 7, 2020
Copy link
Member

@HunDunDM HunDunDM 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-srebot ti-srebot added status/LGT4 The PR has already had 4 LGTM. and removed status/LGT3 The PR has already had 3 LGTM. labels Sep 7, 2020
@rleungx
Copy link
Member

rleungx commented Sep 7, 2020

/run-all-tests

@lhy1024
Copy link
Contributor

lhy1024 commented Sep 7, 2020

/run-all-tests

Signed-off-by: Ryan Leung <rleungx@gmail.com>
@rleungx
Copy link
Member

rleungx commented Sep 7, 2020

/merge

@ti-srebot ti-srebot added the status/can-merge Indicates a PR has been approved by a committer. label Sep 7, 2020
@ti-srebot
Copy link
Contributor Author

/run-all-tests

@codecov
Copy link

codecov bot commented Sep 7, 2020

Codecov Report

Merging #2903 into release-4.0 will decrease coverage by 0.02%.
The diff coverage is 35.48%.

Impacted file tree graph

@@               Coverage Diff               @@
##           release-4.0    #2903      +/-   ##
===============================================
- Coverage        77.41%   77.38%   -0.03%     
===============================================
  Files              210      210              
  Lines            22784    22793       +9     
===============================================
+ Hits             17638    17639       +1     
- Misses            3816     3823       +7     
- Partials          1330     1331       +1     
Impacted Files Coverage Δ
pkg/apiutil/serverapi/middleware.go 73.07% <0.00%> (ø)
pkg/metricutil/metricutil.go 86.11% <0.00%> (ø)
pkg/mock/mockhbstream/mockhbstream.go 89.23% <ø> (-1.54%) ⬇️
pkg/tempurl/check_env_linux.go 61.53% <0.00%> (ø)
server/api/plugin.go 9.75% <ø> (ø)
server/core/basic_cluster.go 91.37% <0.00%> (ø)
server/handler.go 51.19% <0.00%> (+0.43%) ⬆️
server/heartbeat_streams.go 68.00% <0.00%> (ø)
server/kv/etcd_kv.go 73.41% <0.00%> (-1.91%) ⬇️
server/region_syncer/history_buffer.go 83.33% <0.00%> (ø)
... and 29 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d22b12a...ba4b014. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/log Log. status/can-merge Indicates a PR has been approved by a committer. status/LGT4 The PR has already had 4 LGTM.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants