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
I get a panic when I join too many reference tables. Initially I thought it was related to global routing, but it seems to relate to finding the proper routing for the reference tables.
As far as expected results go, that should be clear. But I suppose also adding an additional automated test, with more reference tables, and different kind of addressing modes (with keyspace, without, etc etc)?
In this example, I call mysql legacy < crash-vtgate.sql, so legacy is the default database.
# mysql legacy < crash-vtgate.sql
ERROR 2013 (HY000) at line 1: Lost connection to MySQL server during query
It contains:
vexplain queries
SELECT UNIX_TIMESTAMP()
-- shardedFROMsites2023.alarmLog al
-- shardedINNER JOINsites2023.lastLogDataas lld
ONlld.idSite=al.idSite-- First reference tableINNER JOIN dataAttributes as da
ONlld.idDataAttribute=da.idDataAttribute-- Adding this one is the culprint. But, I can refer to any other reference table and it also panics.inner join deviceTypes as dt
ondt.idDeviceType=da.idDeviceTypewherelld.idSite=219211
There is a bit of a caveat there: issue #15777 shows that seemingly unrelated extra reference tables defined in the sharded keyspace, breaks the routing. It may also affect when the panic happens?
Binary Version
vtgate version Version: 19.0.3 (Git revision cb5464edf5d7075feae744f3580f8bc626d185aa branch 'HEAD') built on Thu Apr 4 12:18:41 UTC 2024 by runner@fv-az1543-228 using go1.22.2 linux/amd64
wiebeytec
changed the title
Bug Report: Joining too many reference tables mode causes panic
Bug Report: Joining too many reference tables causes panic
Apr 26, 2024
Overview of the Issue
I get a panic when I join too many reference tables. Initially I thought it was related to global routing, but it seems to relate to finding the proper routing for the reference tables.
It may also relate to #15777, but not sure.
As far as expected results go, that should be clear. But I suppose also adding an additional automated test, with more reference tables, and different kind of addressing modes (with keyspace, without, etc etc)?
First head of the stack trace:
Reproduction Steps
In this example, I call
mysql legacy < crash-vtgate.sql
, solegacy
is the default database.It contains:
The vschema for
sites2023
is:The simplified one for
legacy
is:There is a bit of a caveat there: issue #15777 shows that seemingly unrelated extra reference tables defined in the sharded keyspace, breaks the routing. It may also affect when the panic happens?
Binary Version
vtgate version Version: 19.0.3 (Git revision cb5464edf5d7075feae744f3580f8bc626d185aa branch 'HEAD') built on Thu Apr 4 12:18:41 UTC 2024 by runner@fv-az1543-228 using go1.22.2 linux/amd64
Operating System and Environment details
Log Fragments
The text was updated successfully, but these errors were encountered: