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

5.0.2 upgrade to 5.1.0, "sql analyze" in dashboard keep running, no result reported #25419

Closed
seiya-annie opened this issue Jun 15, 2021 · 3 comments
Assignees
Labels
affects-4.0 This bug affects 4.0.x versions. affects-5.0 This bug affects 5.0.x versions. affects-5.1 This bug affects 5.1.x versions. severity/major sig/transaction SIG:Transaction type/bug The issue is confirmed as a bug.

Comments

@seiya-annie
Copy link

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

check in tidb.log, can find:
[2021/06/15 15:12:24.327 +08:00] [ERROR] [select_result.go:389] ["invalid cop task execution summaries length"] [conn=35] [expected=2] [received=0]
[2021/06/15 15:12:32.258 +08:00] [INFO] [grpclogger.go:77] ["ccResolverWrapper: sending new addresses to cc: [{http://172.16.5.101:2379 0 }]"] [system=grpc] [grpc_log=true]
[2021/06/15 15:12:32.264 +08:00] [ERROR] [select_result.go:389] ["invalid cop task execution summaries length"] [conn=51] [expected=2] [received=0]
[2021/06/15 15:12:32.691 +08:00] [INFO] [grpclogger.go:77] ["ccResolverWrapper: sending new addresses to cc: [{http://172.16.5.101:2379 0 }]"] [system=grpc] [grpc_log=true]

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

3. What did you see instead (Required)

4. What is your TiDB version? (Required)

| Release Version: v5.1.0-20210611
Edition: Community
Git Commit Hash: 29bfbb2
Git Branch: heads/refs/tags/v5.1.0-20210611
UTC Build Time: 2021-06-11 07:52:09
GoVersion: go1.16.4
Race Enabled: false
TiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306
Check Table Before Drop: false |
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)

@seiya-annie seiya-annie added the type/bug The issue is confirmed as a bug. label Jun 15, 2021
@crazycs520
Copy link
Contributor

crazycs520 commented Jun 16, 2021

The cause is the TiDB config tikv-client.grpc-compression-type = "gzip".

When set TiDB config to tikv-client.grpc-compression-type = "gzip", query some cluster_xxx table will both return empty result set, The affected system tables include:

  • CLUSTER_PROCESSLIST
  • CLUSTER_SLOW_QUERY
  • CLUSTER_STATEMENTS_SUMMARY
  • CLUSTER_STATEMENTS_SUMMARY_HISTORY

tikv-client.grpc-compression-type default value is none, and is imported in PR #20438. So v5.0.0 will also have this problem.

@cfzjywxk PTAL

@cfzjywxk
Copy link
Contributor

Fixed by tikv/client-go#88 and related cherry-picks.

@github-actions
Copy link

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

@jebter jebter added affects-4.0 This bug affects 4.0.x versions. affects-5.0 This bug affects 5.0.x versions. affects-5.1 This bug affects 5.1.x versions. and removed needs-more-info labels Aug 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-4.0 This bug affects 4.0.x versions. affects-5.0 This bug affects 5.0.x versions. affects-5.1 This bug affects 5.1.x versions. severity/major sig/transaction SIG:Transaction type/bug The issue is confirmed as a bug.
Projects
None yet
Development

No branches or pull requests

5 participants