Skip to content

store: use uniform log format for store package#9664

Merged
jackysp merged 11 commits intopingcap:masterfrom
jackysp:store_log
Mar 22, 2019
Merged

store: use uniform log format for store package#9664
jackysp merged 11 commits intopingcap:masterfrom
jackysp:store_log

Conversation

@jackysp
Copy link
Copy Markdown
Contributor

@jackysp jackysp commented Mar 12, 2019

What problem does this PR solve?

Use uniform log format for store package.

Check List

Tests

  • Unit test

Code changes

  • Has exported function/method change

Related changes

  • Need to cherry-pick to the release branch

@jackysp jackysp requested a review from zimulala March 12, 2019 06:17
@jackysp jackysp added the type/enhancement The issue or PR belongs to an enhancement. label Mar 12, 2019
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 12, 2019

Codecov Report

Merging #9664 into master will decrease coverage by 0.0881%.
The diff coverage is 42.5352%.

@@               Coverage Diff                @@
##             master      #9664        +/-   ##
================================================
- Coverage   67.4149%   67.3268%   -0.0882%     
================================================
  Files           383        383                
  Lines         80135      80335       +200     
================================================
+ Hits          54023      54087        +64     
- Misses        21285      21409       +124     
- Partials       4827       4839        +12

@jackysp
Copy link
Copy Markdown
Contributor Author

jackysp commented Mar 12, 2019

/run-all-tests

Comment thread store/tikv/2pc.go Outdated
zap.Uint64("con", c.connID),
zap.String("action type", action.String()),
zap.Error(e),
zap.Uint64("start ts", c.startTS))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

s/ start ts/ txnStartTS

Comment thread store/tikv/2pc.go Outdated
Comment thread store/tikv/2pc.go Outdated
Comment thread store/tikv/2pc.go Outdated
Comment thread store/tikv/backoff.go Outdated
Comment thread store/tikv/coprocessor.go Outdated
Comment thread store/tikv/client.go Outdated
Copy link
Copy Markdown
Contributor

@zimulala zimulala left a comment

Choose a reason for hiding this comment

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

LGTM

@zimulala zimulala added the status/LGT1 Indicates that a PR has LGTM 1. label Mar 21, 2019
@jackysp
Copy link
Copy Markdown
Contributor Author

jackysp commented Mar 22, 2019

PTAL @XuHuaiyu

}
if err != nil {
log.Error("Unmarshal fail:", errors.Trace(err))
logutil.Logger(context.Background()).Error("Unmarshal fail", zap.Error(err))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

s/ Un../ un..

@jackysp
Copy link
Copy Markdown
Contributor Author

jackysp commented Mar 22, 2019

PTAL @XuHuaiyu

Copy link
Copy Markdown
Contributor

@XuHuaiyu XuHuaiyu left a comment

Choose a reason for hiding this comment

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

LGTM

@jackysp jackysp merged commit facadf7 into pingcap:master Mar 22, 2019
jackysp added a commit to jackysp/tidb that referenced this pull request Apr 3, 2019
@jackysp jackysp deleted the store_log branch April 4, 2019 05:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status/LGT1 Indicates that a PR has LGTM 1. type/enhancement The issue or PR belongs to an enhancement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants