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

Lost connection to tidb-server when query a wrong format TIME #10308

Closed
iosmanthus opened this issue Apr 29, 2019 · 3 comments · Fixed by #11865
Closed

Lost connection to tidb-server when query a wrong format TIME #10308

iosmanthus opened this issue Apr 29, 2019 · 3 comments · Fixed by #11865
Assignees
Labels
type/bug The issue is confirmed as a bug.

Comments

@iosmanthus
Copy link
Contributor

Bug Report

  1. What did you do?
    select time("- -")
    select time("---1)
    select time("-- --1)

  2. What did you expect to see?
    report errors correctly, instead of lost connection to tidb-server.

  3. What did you see instead?

> select time("- -")
Reconnecting...
Reconnecting...

And here is the log of tidb-server when I trigger the bug:

[2019/04/29 18:51:56.421 +08:00] [INFO] [server.go:361] ["new connection"] [conn=1] [remoteAddr=127.0.0.1:52014]
[2019/04/29 18:51:56.624 +08:00] [INFO] [server.go:361] ["new connection"] [conn=2] [remoteAddr=127.0.0.1:52018]
[2019/04/29 18:51:57.629 +08:00] [INFO] [server.go:363] ["close connection"] [conn=2]
[2019/04/29 18:52:01.997 +08:00] [INFO] [server.go:363] ["close connection"] [conn=1]
[2019/04/29 18:52:03.200 +08:00] [INFO] [server.go:361] ["new connection"] [conn=3] [remoteAddr=127.0.0.1:52022]
[2019/04/29 18:52:03.202 +08:00] [INFO] [server.go:363] ["close connection"] [conn=3]
[2019/04/29 18:52:04.219 +08:00] [INFO] [server.go:361] ["new connection"] [conn=4] [remoteAddr=127.0.0.1:52026]
  1. What version of TiDB are you using?
Release Version: v2.1.8
Git Commit Hash: 9a2d2da372947a50a02f9b9238a49f2db7ab9971
Git Branch: HEAD
UTC Build Time: 2019-04-12 07:48:47
GoVersion: go version go1.11.2 linux/amd64
Race Enabled: false
TiKV Min Version: 2.1.0-alpha.1-ff3dd160846b7d1aed9079c389fc188f7f5ea13e
Check Table Before Drop: false
@winkyao
Copy link
Contributor

winkyao commented Apr 30, 2019

hum, looks like a bug, we will look into this.

@winkyao winkyao added the type/bug The issue is confirmed as a bug. label Apr 30, 2019
@zz-jason
Copy link
Member

@erjiaqing @yangxuanjia PTAL

@winkyao
Copy link
Contributor

winkyao commented Apr 30, 2019

@iosmanthus I reproduce this issue in the master branch.

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

Successfully merging a pull request may close this issue.

5 participants