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: forbid user to set TxnTotalSizeLimit too large with binlog enabled #14006

Merged
merged 2 commits into from
Dec 11, 2019

Conversation

tiancaiamao
Copy link
Contributor

What problem does this PR solve?

When the large transaction is enabled, the Prewrite and Commit message would be
too large for the binlog component to handle, so it's better to prevent that case.

What is changed and how it works?

Update config.Valid() function to check it.

Check List

Tests

  • Unit test

…enabled

When the large transaction is enabled, the Prewrite and Commit message would be
too large for the binlog component to handle, so it's better to prevent that case.
@tiancaiamao tiancaiamao added type/enhancement The issue or PR belongs to an enhancement. component/config labels Dec 10, 2019
@tiancaiamao
Copy link
Contributor Author

PTAL @coocood @jackysp

@codecov
Copy link

codecov bot commented Dec 10, 2019

Codecov Report

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

@@             Coverage Diff             @@
##             master     #14006   +/-   ##
===========================================
  Coverage   80.3077%   80.3077%           
===========================================
  Files           482        482           
  Lines        121469     121469           
===========================================
  Hits          97549      97549           
  Misses        16214      16214           
  Partials       7706       7706

@coocood
Copy link
Member

coocood commented Dec 10, 2019

LGTM

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 Dec 11, 2019

/merge

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

sre-bot commented Dec 11, 2019

/run-all-tests

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. type/enhancement The issue or PR belongs to an enhancement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants