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

unstable test testPlanSerialSuite.TestPartitionWithVariedDatasources #25642

Closed
Tracked by #25899
zhouqiang-cl opened this issue Jun 22, 2021 · 13 comments · Fixed by #30139
Closed
Tracked by #25899

unstable test testPlanSerialSuite.TestPartitionWithVariedDatasources #25642

zhouqiang-cl opened this issue Jun 22, 2021 · 13 comments · Fixed by #30139
Assignees
Labels
affects-6.0 affects-6.1 affects-6.2 affects-6.3 affects-6.4 affects-6.6 affects-7.0 good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. may-affects-4.0 This bug maybe affects 4.0.x versions. may-affects-5.0 This bug maybe affects 5.0.x versions. may-affects-5.1 This bug maybe affects 5.1.x versions. may-affects-5.2 This bug maybe affects 5.2.x versions. may-affects-5.3 This bug maybe affects 5.3.x versions. may-affects-5.4 This bug maybe affects 5.4.x versions. severity/major sig/planner SIG: Planner type/bug The issue is confirmed as a bug.

Comments

@zhouqiang-cl
Copy link
Contributor

Bug Report

6-21T20:37:59.445Z] FAIL: prepare_test.go:1342: testPlanSerialSuite.TestPartitionWithVariedDatasources

[2021-06-21T20:37:59.445Z] 

[2021-06-21T20:37:59.445Z] prepare_test.go:1418:

[2021-06-21T20:37:59.445Z]     tk.MustQuery(`select @@last_plan_from_cache`).Check(testkit.Rows("1"))

[2021-06-21T20:37:59.445Z] /home/jenkins/agent/workspace/tidb-unit-test-nightly/go/src/github.com/pingcap/tidb/util/testkit/testkit.go:63:

[2021-06-21T20:37:59.445Z]     res.c.Assert(resBuff.String(), check.Equals, needBuff.String(), res.comment)

[2021-06-21T20:37:59.445Z] ... obtained string = "[0]\n"

[2021-06-21T20:37:59.445Z] ... expected string = "[1]\n"

[2021-06-21T20:37:59.445Z] ... sql:select @@last_plan_from_cache, args:[]

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

in ci https://ci.pingcap.net/blue/organizations/jenkins/tidb-unit-test-nightly/detail/tidb-unit-test-nightly/1606/pipeline

2. What did you expect to see? (Required)

3. What did you see instead (Required)

4. What is your TiDB version? (Required)

master 3a1f65a

@zimulala
Copy link
Contributor

PTAL @qw4990

@qw4990
Copy link
Contributor

qw4990 commented Jul 26, 2021

Cannot locate the cause for this issue, and with it didn't appear again for a few weeks, I prefer to close this issue now.
If it appears again, please contact me.

@qw4990 qw4990 closed this as completed Jul 26, 2021
@ti-srebot
Copy link
Contributor

Please edit this comment or add a new comment to complete the following information

Not a bug

  1. Remove the 'type/bug' label
  2. Add notes to indicate why it is not a bug

Duplicate bug

  1. Add the 'type/duplicate' label
  2. Add the link to the original bug

Bug

Note: Make Sure that 'component', and 'severity' labels are added
Example for how to fill out the template: #20100

1. Root Cause Analysis (RCA) (optional)

2. Symptom (optional)

3. All Trigger Conditions (optional)

4. Workaround (optional)

5. Affected versions

6. Fixed versions

@tiancaiamao
Copy link
Contributor

New reproduction found.

@qw4990
Copy link
Contributor

qw4990 commented Nov 23, 2021

Close since no new error message and no more idea about it ...
Please post the error message here and let me know if it reproduces again in the future.

@qw4990 qw4990 closed this as completed Nov 23, 2021
@github-actions
Copy link

Please check whether the issue should be labeled with 'affects-x.y' or 'fixes-x.y.z', and then remove 'needs-more-info' label.

@qw4990
Copy link
Contributor

qw4990 commented Nov 23, 2021

A new case: https://ci.pingcap.net/blue/organizations/jenkins/tidb_ghpr_check_2/detail/tidb_ghpr_check_2/47548/pipeline/


[2021-11-23T09:45:41.784Z] FAIL: prepare_test.go:2036: testPlanSerialSuite.TestPartitionWithVariedDatasources

[2021-11-23T09:45:41.784Z] 

[2021-11-23T09:45:41.784Z] prepare_test.go:2164:

[2021-11-23T09:45:41.784Z]     tk.MustQuery(`select @@last_plan_from_cache`).Check(testkit.Rows("1"))

[2021-11-23T09:45:41.784Z] /home/jenkins/agent/workspace/tidb_ghpr_check_2/go/src/github.com/pingcap/tidb/util/testkit/testkit.go:67:

[2021-11-23T09:45:41.784Z]     res.c.Assert(resBuff.String(), check.Equals, needBuff.String(), res.comment)

[2021-11-23T09:45:41.784Z] ... obtained string = "[0]\n"

[2021-11-23T09:45:41.784Z] ... expected string = "[1]\n"

[2021-11-23T09:45:41.784Z] ... sql:select @@last_plan_from_cache, args:[]

[2021-11-23T09:45:41.784Z] 

[2021-11-23T09:45:41.784Z] 

[2021-11-23T09:45:41.784Z] ----------------------------------------------------------------------

@github-actions
Copy link

Please check whether the issue should be labeled with 'affects-x.y' or 'fixes-x.y.z', and then remove 'needs-more-info' label.

@tiancaiamao
Copy link
Contributor

@tiancaiamao
Copy link
Contributor

tiancaiamao commented Mar 9, 2022

Again!
https://ci.pingcap.net/blue/organizations/jenkins/tidb_ghpr_unit_test/detail/tidb_ghpr_unit_test/39667/pipeline

[FAIL]  planner/core TestPartitionWithVariedDataSources1
[2022-03-09T07:40:46.850Z] err=exit status 1
[2022-03-09T07:40:46.850Z] [2022/03/09 15:40:36.553 +08:00] [WARN] [session.go:1879] ["run statement failed"] [schemaVersion=0] [error="[schema:1049]Unknown database 'mysql'"] [errorVerbose="[schema:1049]Unknown database 'mysql'\ngithub.com/pingcap/errors.AddStack\n\t/go/pkg/mod/github.com/pingcap/[email protected]/errors.go:174\ngithub.com/pingcap/errors.(*Error).GenWithStackByArgs\n\t/go/pkg/mod/github.com/pingcap/[email protected]/normalize.go:164\ngithub.com/pingcap/tidb/executor.(*SimpleExec).executeUse\n\t/home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/simple.go:557\ngithub.com/pingcap/tidb/executor.(*SimpleExec).Next\n\t/home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/simple.go:127\ngithub.com/pingcap/tidb/executor.Next\n\t/home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/executor.go:302\ngithub.com/pingcap/tidb/executor.(*ExecStmt).handleNoDelayExecutor\n\t/home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/adapter.go:635\ngithub.com/pingcap/tidb/executor.(*ExecStmt).handleNoDelay\n\t/home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/adapter.go:490\ngithub.com/pingcap/tidb/executor.(*ExecStmt).Exec\n\t/home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/adapter.go:439\ngithub.com/pingcap/tidb/session.runStmt\n\t/home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/session/session.go:1999\ngithub.com/pingcap/tidb/session.(*session).ExecuteStmt\n\t/home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/session/session.go:1876\ngithub.com/pingcap/tidb/session.(*session).ExecuteInternal\n\t/home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/session/session.go:1488\ngithub.com/pingcap/tidb/session.checkBootstrapped\n\t/home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/session/bootstrap.go:681\ngithub.com/pingcap/tidb/session.bootstrap\n\t/home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/session/bootstrap.go:406\ngithub.com/pingcap/tidb/session.runInBootstrapSession\n\t/home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/session/session.go:2926\ngithub.com/pingcap/tidb/session.BootstrapSession\n\t/home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/session/session.go:2768\ngithub.com/pingcap/tidb/testkit.bootstrap\n\t/home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/testkit/mockstore.go:50\ngithub.com/pingcap/tidb/testkit.CreateMockStoreAndDomain\n\t/home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/testkit/mockstore.go:43\ngithub.com/pingcap/tidb/testkit.CreateMockStore\n\t/home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/testkit/mockstore.go:35\ngithub.com/pingcap/tidb/planner/core_test.TestPartitionWithVariedDataSources\n\t/home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/planner/core/prepare_test.go:2414\ntesting.tRunner\n\t/usr/local/go/src/testing/testing.go:1193\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1371"] [session="{\n  \"currDBName\": \"\",\n  \"id\": 0,\n  \"status\": 2,\n  \"strictMode\": true,\n  \"user\": null\n}"]
[2022-03-09T07:40:46.850Z] [2022/03/09 15:40:36.818 +08:00] [WARN] [sysvar_cache.go:54] ["sysvar cache is empty, triggering rebuild"]
[2022-03-09T07:40:46.850Z] --- FAIL: TestPartitionWithVariedDataSources (1.90s)
[2022-03-09T07:40:46.850Z]     result.go:50: 
[2022-03-09T07:40:46.850Z]         	Error Trace:	result.go:50
[2022-03-09T07:40:46.850Z]         	            				prepare_test.go:2520
[2022-03-09T07:40:46.850Z]         	Error:      	Not equal: 
[2022-03-09T07:40:46.850Z]         	            	expected: "[1]\n"
[2022-03-09T07:40:46.850Z]         	            	actual  : "[0]\n"
[2022-03-09T07:40:46.850Z]         	            	
[2022-03-09T07:40:46.850Z]         	            	Diff:
[2022-03-09T07:40:46.850Z]         	            	--- Expected
[2022-03-09T07:40:46.850Z]         	            	+++ Actual
[2022-03-09T07:40:46.851Z]         	            	@@ -1,2 +1,2 @@
[2022-03-09T07:40:46.851Z]         	            	-[1]
[2022-03-09T07:40:46.851Z]         	            	+[0]
[2022-03-09T07:40:46.851Z]         	            	 
[2022-03-09T07:40:46.851Z]         	Test:       	TestPartitionWithVariedDataSources
[2022-03-09T07:40:46.851Z]         	Messages:   	sql:select @@last_plan_from_cache, args:[]
[2022-03-09T07:40:46.851Z] FAIL

@tiancaiamao tiancaiamao added good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. labels Mar 11, 2022
@ti-chi-bot ti-chi-bot added may-affects-4.0 This bug maybe affects 4.0.x versions. may-affects-5.0 This bug maybe affects 5.0.x versions. may-affects-5.1 This bug maybe affects 5.1.x versions. may-affects-5.2 This bug maybe affects 5.2.x versions. may-affects-5.3 This bug maybe affects 5.3.x versions. may-affects-5.4 This bug maybe affects 5.4.x versions. labels May 10, 2022
@hawkingrei
Copy link
Member

It is so old. I have not seen this flaky test for a long time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-6.0 affects-6.1 affects-6.2 affects-6.3 affects-6.4 affects-6.6 affects-7.0 good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. may-affects-4.0 This bug maybe affects 4.0.x versions. may-affects-5.0 This bug maybe affects 5.0.x versions. may-affects-5.1 This bug maybe affects 5.1.x versions. may-affects-5.2 This bug maybe affects 5.2.x versions. may-affects-5.3 This bug maybe affects 5.3.x versions. may-affects-5.4 This bug maybe affects 5.4.x versions. severity/major sig/planner SIG: Planner type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

10 participants