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

executor: fix goword checker bugs in insert*.go #26257

Merged
merged 3 commits into from
Jul 16, 2021

Conversation

zoomxi
Copy link
Contributor

@zoomxi zoomxi commented Jul 15, 2021

What problem does this PR solve?

Problem Summary: according to the discuss in PR #26189 , i make a PR to fix goword checker bugs in insert*.go first, and after this i will make another PR for issue fix.

What is changed and how it works?

What's Changed: executor/insert*.go

How it Works: fix goword checker bugs

Check List

Tests

  • Unit test

Release note

  • No release note

@ti-chi-bot ti-chi-bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jul 15, 2021
@github-actions github-actions bot added the sig/execution SIG execution label Jul 15, 2021
@zoomxi
Copy link
Contributor Author

zoomxi commented Jul 15, 2021

/cc @mmyj @ngaut @wjhuang2016 thanks ^-^

@@ -1571,7 +1571,7 @@ func combination(items []string) func() []string {
}
}

// See https://github.com/pingcap/tidb/issues/24582
// TestDuplicatedEntryErr : See https://github.com/pingcap/tidb/issues/24582
Copy link
Member

Choose a reason for hiding this comment

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

Delete :.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok, thanks for reply

Copy link
Member

Choose a reason for hiding this comment

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

You should delete other : also. 😆

Copy link
Contributor Author

Choose a reason for hiding this comment

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

haha, okay

@zoomxi zoomxi force-pushed the zoomxi/24044_new branch 2 times, most recently from c2e8140 to 4d7dd3e Compare July 15, 2021 03:43
@mmyj
Copy link
Member

mmyj commented Jul 15, 2021

Following is the all goword errors of the upstream master branch.
goword.txt

Is there any issue to track making goword happy?

@mmyj
Copy link
Member

mmyj commented Jul 15, 2021

I found an issue about it.
#3120

@@ -75,7 +75,7 @@ type InsertValues struct {
hasRefCols bool
hasExtraHandle bool

// Fill the autoID lazily to datum. This is used for being compatible with JDBC using getGeneratedKeys().
// lazyFillAutoID Fill the autoID lazily to datum. This is used for being compatible with JDBC using getGeneratedKeys().
Copy link
Member

Choose a reason for hiding this comment

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

lazyFillAutoID indicates whatever had been filled the autoID lazily to datum. This is used for being...

@@ -86,7 +86,7 @@ type InsertValues struct {

stats *InsertRuntimeStat

// LoadData use two goroutines. One for generate batch data,
// isLoadData LoadData use two goroutines. One for generate batch data,
Copy link
Member

Choose a reason for hiding this comment

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

isLoadData indicates whatever current goroutine is use for generating batch data. LoadData use two goroutines...

Copy link
Member

@mmyj mmyj 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-chi-bot ti-chi-bot added the status/LGT1 Indicates that a PR has LGTM 1. label Jul 16, 2021
@ti-chi-bot
Copy link
Member

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • mmyj
  • wjhuang2016

To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer in the comment.
After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer in the comment to help you merge this pull request.

The full list of commands accepted by this bot can be found here.

Reviewer can indicate their review by submitting an approval review.
Reviewer can cancel approval by submitting a request changes review.

@ti-chi-bot ti-chi-bot added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Jul 16, 2021
@wjhuang2016
Copy link
Member

/merge

@ti-chi-bot
Copy link
Member

This pull request has been accepted and is ready to merge.

Commit hash: 58f5def

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Jul 16, 2021
@ti-chi-bot
Copy link
Member

@zoomxi: Your PR was out of date, I have automatically updated it for you.

At the same time I will also trigger all tests for you:

/run-all-tests

If the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository.

@ti-chi-bot ti-chi-bot merged commit bae5024 into pingcap:master Jul 16, 2021
@zoomxi zoomxi deleted the zoomxi/24044_new branch July 19, 2021 01:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/execution SIG execution size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants