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

unit test TestDataForTableStatsField fails #15222

Closed
SunRunAway opened this issue Mar 9, 2020 · 2 comments · Fixed by #15245 or #15260
Closed

unit test TestDataForTableStatsField fails #15222

SunRunAway opened this issue Mar 9, 2020 · 2 comments · Fixed by #15245 or #15260
Labels
component/test severity/minor type/bug The issue is confirmed as a bug.

Comments

@SunRunAway
Copy link
Contributor

SunRunAway commented Mar 9, 2020

infoschema_reader_test.go:testInfoschemaTableSuite.TestDataForTableStatsField

Bug Report

Please answer these questions before submitting your issue. Thanks!

  1. What did you do?
[2020-03-09T06:13:08.055Z] FAIL: infoschema_reader_test.go:211: testInfoschemaTableSuite.TestDataForTableStatsField

[2020-03-09T06:13:08.055Z] 

[2020-03-09T06:13:08.055Z] infoschema_reader_test.go:257:

[2020-03-09T06:13:08.055Z]     tk.MustQuery("select table_rows, avg_row_length, data_length, index_length from information_schema.tables where table_name='t'").Check(

[2020-03-09T06:13:08.055Z]         testkit.Rows("3 18 54 6"))

[2020-03-09T06:13:08.055Z] /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/util/testkit/testkit.go:62:

[2020-03-09T06:13:08.056Z]     res.c.Assert(resBuff.String(), check.Equals, needBuff.String(), res.comment)

[2020-03-09T06:13:08.056Z] ... obtained string = "[0 0 0 0]\n"

[2020-03-09T06:13:08.056Z] ... expected string = "[3 18 54 6]\n"

[2020-03-09T06:13:08.056Z] ... sql:select table_rows, avg_row_length, data_length, index_length from information_schema.tables where table_name='t', args:[]

It's introduced in #15208

  1. What did you expect to see?

  2. What did you see instead?

  3. What version of TiDB are you using (tidb-server -V or run select tidb_version(); on TiDB)?

Seen at https://internal.pingcap.net/idc-jenkins/blue/organizations/jenkins/tidb_ghpr_unit_test/detail/tidb_ghpr_unit_test/26675/pipeline
in PR #15098 (comment)

@SunRunAway SunRunAway added type/bug The issue is confirmed as a bug. component/test labels Mar 9, 2020
@SunRunAway
Copy link
Contributor Author

@lonng PTAL

@SunRunAway
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/test severity/minor type/bug The issue is confirmed as a bug.
Projects
None yet
3 participants