You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
select1as one
from dual
where exists (
select1as one
frominformation_schema.TABLESwhere (
information_schema.TABLES.TABLE_NAME ='proc'andinformation_schema.TABLES.TABLE_SCHEMA ='mysql'
)
)
The above query is sent by JOOQ library when reading DB schema (that schema is used then to generate java classes)
This happens for both shared and unsharded keyspaces.
Reproduction Steps
* login to mysql
* mysql> select 1 as one from dual where exists ( select 1 as one from information_schema.TABLES where ( information_schema.TABLES.TABLE_NAME = 'proc' and information_schema.TABLES.TABLE_SCHEMA = 'mysql' ) );
ERROR 2013 (HY000): Lost connection to MySQL server during query
No connection. Trying to reconnect...
Connection id: 57
Current database: cloudsync_db
ERROR 2013 (HY000): Lost connection to MySQL server during query
No connection. Trying to reconnect...
Connection id: 58
Current database: cloudsync_db
ERROR 2013 (HY000): Lost connection to MySQL server during query
Binary Version
vitess@vitess:/vt/vtdataroot/tmp$ vtgate -version
ERROR: logging before flag.Parse: E0208 19:40:39.319003 1368 syslogger.go:149] can't connect to syslogVersion: 13.0.0-SNAPSHOT (Git revision 727d8fe893 branch 'main') built on Tue Feb 1 15:49:03 UTC 2022 by vitess@buildkitsandbox using go1.17.6 linux/amd64
### Operating System and Environment details
```shell
docker/linux
Overview of the Issue
vtgate panics when trying to execute below query:
The above query is sent by JOOQ library when reading DB schema (that schema is used then to generate java classes)
This happens for both shared and unsharded keyspaces.
Reproduction Steps
Binary Version
Log Fragments
vtgate: E0208 19:41:12.424888 401 server.go:319] mysql_server caught panic: assignment to entry in nil map runtime/map_faststr.go:204 (0x41306e) vitess.io/vitess/go/vt/vtgate/planbuilder/route.go:383 (0xe5c56e) vitess.io/vitess/go/vt/vtgate/planbuilder/expr.go:134 (0xe34a24) vitess.io/vitess/go/vt/vtgate/planbuilder/select.go:407 (0xe612c9) vitess.io/vitess/go/vt/vtgate/planbuilder/select.go:208 (0xe5fc44) vitess.io/vitess/go/vt/vtgate/planbuilder/select.go:55 (0xe5f679) vitess.io/vitess/go/vt/vtgate/planbuilder/select.go:64 (0xe5f402) vitess.io/vitess/go/vt/vtgate/planbuilder/builder.go:148 (0xe2ad19) vitess.io/vitess/go/vt/vtgate/planbuilder/builder.go:160 (0xe2ae95) vitess.io/vitess/go/vt/vtgate/planbuilder/builder.go:84 (0xe2a7d7) vitess.io/vitess/go/vt/vtgate/executor.go:1449 (0xec9f9d) vitess.io/vitess/go/vt/vtgate/plan_execute.go:63 (0xeced1d) vitess.io/vitess/go/vt/vtgate/executor.go:360 (0xebe958) vitess.io/vitess/go/vt/vtgate/executor.go:175 (0xebcf46) vitess.io/vitess/go/vt/vtgate/vtgate.go:382 (0xef5e9c) vitess.io/vitess/go/vt/vtgate/plugin_mysql_server.go:223 (0xed145a) vitess.io/vitess/go/mysql/conn.go:1260 (0xc124f5) vitess.io/vitess/go/mysql/conn.go:1245 (0xc1217d) vitess.io/vitess/go/mysql/conn.go:882 (0xc0f1ce) vitess.io/vitess/go/mysql/server.go:494 (0xc2d817) vitess.io/vitess/go/mysql/server.go:302 (0xc2c35e) runtime/asm_amd64.s:1581 (0x4691e0)
vttablets:
The text was updated successfully, but these errors were encountered: