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

session: add arguments info for retry #8506

Merged
merged 1 commit into from
Nov 29, 2018

Conversation

jackysp
Copy link
Member

@jackysp jackysp commented Nov 29, 2018

What problem does this PR solve?

For binary execute statement, the arguments info are missing when the transaction is retrying.

What is changed and how it works?

Add the arguments info when retrying.

Check List

Tests

  • Manual test (add detailed scripts or steps below)
    The log looks as the following, the arguments appare twice, due to TiDB doesn't reset arguments when retrying. Related to session: move more session vars to stmt context for retrying #8034
    2018/11/29 14:14:23.300 session.go:497: [warning] con:7 schema_ver:24 retry_cnt:0 query_num:0 sql:update t set i = ? [arguments: 2, 2]

Code changes

  • Has exported function/method change

Side effects

  • Increased code complexity

PTAL @lysu @tiancaiamao


This change is Reviewable

@jackysp jackysp added the type/enhancement The issue or PR belongs to an enhancement. label Nov 29, 2018
Copy link
Contributor

@lysu lysu left a comment

Choose a reason for hiding this comment

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

LGTM

@tiancaiamao
Copy link
Contributor

LGTM

@tiancaiamao
Copy link
Contributor

/run-all-tests tidb-test=release-2.1

@zz-jason zz-jason added status/LGT2 Indicates that a PR has LGTM 2. component/server labels Nov 29, 2018
@jackysp jackysp merged commit 7ccb0f1 into pingcap:release-2.1 Nov 29, 2018
jackysp added a commit to jackysp/tidb that referenced this pull request Nov 29, 2018
jackysp added a commit that referenced this pull request Dec 3, 2018
iamzhoug37 pushed a commit to iamzhoug37/tidb that referenced this pull request Dec 13, 2018
@jackysp jackysp deleted the retry_args_2.1 branch April 4, 2019 05:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/server status/LGT2 Indicates that a PR has LGTM 2. 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