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

config: remove txn-local-latches from config file #15765

Merged
merged 5 commits into from
Mar 28, 2020

Conversation

bobotu
Copy link
Contributor

@bobotu bobotu commented Mar 27, 2020

What problem does this PR solve?

The txn-local-latches may lack sufficient tests and not recommend to use for now.

fix #15746

What is changed and how it works?

Omitting txn-local-latches when marshal/unmarshals config file and make it disabled by default.

Tests

  • Unit test

@bobotu
Copy link
Contributor Author

bobotu commented Mar 27, 2020

PTAL @jackysp

@@ -77,7 +77,7 @@ type Config struct {
MemQuotaQuery int64 `toml:"mem-quota-query" json:"mem-quota-query"`
EnableStreaming bool `toml:"enable-streaming" json:"enable-streaming"`
EnableBatchDML bool `toml:"enable-batch-dml" json:"enable-batch-dml"`
TxnLocalLatches TxnLocalLatches `toml:"txn-local-latches" json:"txn-local-latches"`
TxnLocalLatches TxnLocalLatches `toml:"-" json:"-"`
Copy link
Member

@jackysp jackysp Mar 27, 2020

Choose a reason for hiding this comment

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

Will it make -config-check fail? Maybe we need to add it to

func isAllDeprecatedConfigItems(items []string) bool {
.

@codecov
Copy link

codecov bot commented Mar 27, 2020

Codecov Report

Merging #15765 into master will not change coverage.
The diff coverage is n/a.

@@             Coverage Diff             @@
##             master     #15765   +/-   ##
===========================================
  Coverage   80.4465%   80.4465%           
===========================================
  Files           504        504           
  Lines        134692     134692           
===========================================
  Hits         108355     108355           
  Misses        17862      17862           
  Partials       8475       8475

@tiancaiamao
Copy link
Contributor

LGTM

@tiancaiamao tiancaiamao added the status/LGT1 Indicates that a PR has LGTM 1. label Mar 27, 2020
@bobotu bobotu requested a review from jackysp March 27, 2020 08:45
jackysp
jackysp previously approved these changes Mar 27, 2020
Copy link
Member

@jackysp jackysp 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
Copy link
Member

jackysp commented Mar 27, 2020

/merge

@sre-bot sre-bot added the status/can-merge Indicates a PR has been approved by a committer. label Mar 27, 2020
@sre-bot
Copy link
Contributor

sre-bot commented Mar 27, 2020

/run-all-tests

@sre-bot
Copy link
Contributor

sre-bot commented Mar 27, 2020

@bobotu merge failed.

@bobotu
Copy link
Contributor Author

bobotu commented Mar 27, 2020

/run-all-tests

@bobotu
Copy link
Contributor Author

bobotu commented Mar 27, 2020

/run-unit-test

@bobotu
Copy link
Contributor Author

bobotu commented Mar 27, 2020

/merge

@sre-bot
Copy link
Contributor

sre-bot commented Mar 27, 2020

/run-all-tests

@sre-bot
Copy link
Contributor

sre-bot commented Mar 27, 2020

@bobotu merge failed.

@bobotu
Copy link
Contributor Author

bobotu commented Mar 27, 2020

/run-all-tests

@jackysp
Copy link
Member

jackysp commented Mar 27, 2020

/merge

@sre-bot
Copy link
Contributor

sre-bot commented Mar 27, 2020

/run-all-tests

@sre-bot
Copy link
Contributor

sre-bot commented Mar 27, 2020

@bobotu merge failed.

@bobotu
Copy link
Contributor Author

bobotu commented Mar 27, 2020

/merge

@sre-bot
Copy link
Contributor

sre-bot commented Mar 27, 2020

/run-all-tests

@jackysp jackysp merged commit 2df7112 into pingcap:master Mar 28, 2020
sre-bot pushed a commit to sre-bot/tidb that referenced this pull request Mar 28, 2020
@sre-bot
Copy link
Contributor

sre-bot commented Mar 28, 2020

cherry pick to release-4.0 in PR #15792

@lysu
Copy link
Contributor

lysu commented May 11, 2020

/run-cherry-picker

sre-bot pushed a commit to sre-bot/tidb that referenced this pull request May 11, 2020
Signed-off-by: sre-bot <sre-bot@pingcap.com>
@sre-bot
Copy link
Contributor

sre-bot commented May 11, 2020

cherry pick to release-3.0 in PR #17079

sre-bot pushed a commit to sre-bot/tidb that referenced this pull request May 11, 2020
Signed-off-by: sre-bot <sre-bot@pingcap.com>
@sre-bot
Copy link
Contributor

sre-bot commented May 11, 2020

cherry pick to release-3.1 in PR #17080

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/config status/can-merge Indicates a PR has been approved by a committer. status/LGT1 Indicates that a PR has LGTM 1.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ANALYZE TABLE causes SIGSEGV on latest trunk
5 participants