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 allow-auto-random config option #16596

Merged
merged 4 commits into from
Jun 10, 2020

Conversation

tangenta
Copy link
Contributor

@tangenta tangenta commented Apr 20, 2020

What problem does this PR solve?

Close #17882

Problem Summary: Since the attribute auto_random is stable now, we can move the option allow-auto-random out of the [experimental] section in configuration file.

What is changed and how it works?

What's Changed:

How it Works:

Related changes

  • PR to update pingcap/docs/pingcap/docs-cn:

Check List

Tests

  • Unit test
  • Integration test

Side effects

Release note

  • The column attribute auto_random gets stable and it can be used without the config option allow-auto-random.

@tangenta tangenta requested a review from a team as a code owner April 20, 2020 04:59
@ghost ghost requested review from XuHuaiyu and removed request for a team April 20, 2020 04:59
@github-actions github-actions bot added sig/sql-infra SIG: SQL Infra sig/execution SIG execution labels Apr 20, 2020
@codecov
Copy link

codecov bot commented Apr 20, 2020

Codecov Report

Merging #16596 into master will increase coverage by 0.3738%.
The diff coverage is 100.0000%.

@@               Coverage Diff                @@
##             master     #16596        +/-   ##
================================================
+ Coverage   80.0128%   80.3866%   +0.3738%     
================================================
  Files           510        506         -4     
  Lines        138984     136718      -2266     
================================================
- Hits         111205     109903      -1302     
+ Misses        18817      18231       -586     
+ Partials       8962       8584       -378     

Copy link
Contributor

@AilinKid AilinKid left a comment

Choose a reason for hiding this comment

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

LGTM

config/config.toml.example Outdated Show resolved Hide resolved
@tangenta tangenta changed the title config: move auto_random out of experimental section config: remove allow-auto-random config option Apr 21, 2020
ddl/serial_test.go Outdated Show resolved Hide resolved
@sre-bot
Copy link
Contributor

sre-bot commented May 11, 2020

@XuHuaiyu XuHuaiyu removed their request for review May 12, 2020 14:19
Copy link
Contributor

@AilinKid AilinKid left a comment

Choose a reason for hiding this comment

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

Rest LGTM

meta/autoid/errors.go Show resolved Hide resolved
@tangenta tangenta added the status/LGT1 Indicates that a PR has LGTM 1. label Jun 10, 2020
Copy link
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

Copy link
Contributor

@crazycs520 crazycs520 left a comment

Choose a reason for hiding this comment

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

LGTM

@tangenta tangenta added status/LGT3 The PR has already had 3 LGTM. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Jun 10, 2020
@zimulala zimulala added the compatibility-breaker Violation of forwards/backwards compatibility in a design-time piece. label Jun 10, 2020
@tangenta tangenta added the status/can-merge Indicates a PR has been approved by a committer. label Jun 10, 2020
@sre-bot
Copy link
Contributor

sre-bot commented Jun 10, 2020

/run-all-tests

@sre-bot
Copy link
Contributor

sre-bot commented Jun 10, 2020

@tangenta merge failed.

@tangenta
Copy link
Contributor Author

/common-test

[2020-06-10T05:29:46.910Z] ./t/drop.test: ok! 19 test cases passed, take time 0.253035931 s

[2020-06-10T05:29:47.166Z] time="2020-06-10T13:29:46+08:00" level=info msg="run test [drop] ok"

[2020-06-10T05:29:47.166Z] time="2020-06-10T13:29:46+08:00" level=warning msg="Create new db&{0 {root:@tcp(127.0.0.1:4001)/test?strict=true&time_zone=%27Asia%2FShanghai%27 0x10a1110} 0 {0 0} [0xc0006e8900] map[] 0 1 0xc0006cea80 0xc0005f1e00 false map[0xc0006e8900:map[0xc0006e8900:true]] map[] 0 0 0 <nil> 0 0 0 0x48c430}"

[2020-06-10T05:29:47.166Z] time="2020-06-10T13:29:46+08:00" level=fatal msg="run test [insert_select] err: sql:INSERT INTO t1 VALUES (1,1),(2,2),(10,10);: run \"INSERT INTO t1 VALUES (1,1),(2,2),(10,10);\" at line 134 err Error 1146: Table 'test.t1' doesn't exist"

@tangenta
Copy link
Contributor Author

/merge

@sre-bot
Copy link
Contributor

sre-bot commented Jun 10, 2020

/run-all-tests

@sre-bot
Copy link
Contributor

sre-bot commented Jun 10, 2020

@tangenta merge failed.

@tangenta
Copy link
Contributor Author

/run-unit-test
Data race:

[2020-06-10T05:34:50.397Z] WARNING: DATA RACE

[2020-06-10T05:34:50.397Z] Write at 0x00c000171158 by goroutine 255:

[2020-06-10T05:34:50.397Z]   github.com/pingcap/tidb/session_test.(*testSessionSerialSuite).TestStatementCountLimit()

[2020-06-10T05:34:50.397Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/session/session_test.go:2456 +0x1c9

[2020-06-10T05:34:50.397Z]   github.com/pingcap/tidb/session_test.(*testSessionSerialSuite).TestStatementCountLimit()

[2020-06-10T05:34:50.397Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/session/session_test.go:2454 +0x12d

[2020-06-10T05:34:50.397Z]   runtime.call32()

[2020-06-10T05:34:50.397Z]       /usr/local/go/src/runtime/asm_amd64.s:539 +0x3a

[2020-06-10T05:34:50.397Z]   reflect.Value.Call()

[2020-06-10T05:34:50.397Z]       /usr/local/go/src/reflect/value.go:321 +0xd3

[2020-06-10T05:34:50.397Z]   github.com/pingcap/check.(*suiteRunner).forkTest.func1()

[2020-06-10T05:34:50.397Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/pkg/mod/github.com/pingcap/check@v0.0.0-20200212061837-5e12011dc712/check.go:850 +0x9aa

[2020-06-10T05:34:50.397Z]   github.com/pingcap/check.(*suiteRunner).forkCall.func1()

[2020-06-10T05:34:50.397Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/pkg/mod/github.com/pingcap/check@v0.0.0-20200212061837-5e12011dc712/check.go:739 +0x113

[2020-06-10T05:34:50.397Z] 

[2020-06-10T05:34:50.397Z] Previous read at 0x00c000171158 by goroutine 568:

[2020-06-10T05:34:50.397Z]   github.com/pingcap/tidb/session.checkStmtLimit()

[2020-06-10T05:34:50.397Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/session/tidb.go:247 +0xe7

[2020-06-10T05:34:50.397Z]   github.com/pingcap/tidb/session.finishStmt()

[2020-06-10T05:34:50.397Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/session/tidb.go:211 +0x133

[2020-06-10T05:34:50.398Z]   github.com/pingcap/tidb/session.runStmtWrap()

[2020-06-10T05:34:50.398Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/session/session.go:1224 +0x568

[2020-06-10T05:34:50.398Z]   github.com/pingcap/tidb/session.(*session).ExecuteStmt()

[2020-06-10T05:34:50.398Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/session/session.go:1164 +0xa6f

[2020-06-10T05:34:50.398Z]   github.com/pingcap/tidb/session.(*session).Execute()

[2020-06-10T05:34:50.398Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/session/session.go:1077 +0x3ee

[2020-06-10T05:34:50.398Z]   github.com/pingcap/tidb/ddl/util.RemoveFromGCDeleteRange()

[2020-06-10T05:34:50.398Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/ddl/util/util.go:121 +0x18f

[2020-06-10T05:34:50.398Z]   github.com/pingcap/tidb/ddl/util.CompleteDeleteRange()

[2020-06-10T05:34:50.398Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/ddl/util/util.go:115 +0x227

[2020-06-10T05:34:50.398Z]   github.com/pingcap/tidb/ddl.(*delRange).doTask()

[2020-06-10T05:34:50.398Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/ddl/delete_range.go:230 +0x611

[2020-06-10T05:34:50.398Z]   github.com/pingcap/tidb/ddl.(*delRange).doDelRangeWork()

[2020-06-10T05:34:50.398Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/ddl/delete_range.go:184 +0x54c

[2020-06-10T05:34:50.398Z]   github.com/pingcap/tidb/ddl.(*delRange).startEmulator()

[2020-06-10T05:34:50.398Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/ddl/delete_range.go:148 +0x1db

@AilinKid
Copy link
Contributor

/run-unit-test

@AilinKid
Copy link
Contributor

/run-integration-br-test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compatibility-breaker Violation of forwards/backwards compatibility in a design-time piece. component/config sig/execution SIG execution sig/sql-infra SIG: SQL Infra status/can-merge Indicates a PR has been approved by a committer. status/LGT3 The PR has already had 3 LGTM.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move auto_random out of experimental features
6 participants