[MXS-942] describe table query not routed to shard that contains the schema Created: 2016-10-18 Updated: 2016-10-24 Resolved: 2016-10-24 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | schemarouter |
| Affects Version/s: | None |
| Fix Version/s: | 2.0.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | Brian | Assignee: | markus makela |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
maxscale host: ubuntu 16 mysql client: php 5.5 / Zend 1.18 default mysql connector |
||
| Description |
|
The following message is shown
when running one of the following queries
This happens when no default database is set or when connected to a default database that is not on the same shard as the database that contains the table. |
| Comments |
| Comment by markus makela [ 2016-10-20 ] |
|
This seems to happen due to the fact that for all of SHOW COLUMNS, EXPLAIN and DEESCRIBE the query classifier returns information_schema. This is most likely by design so that the actual table that is used is returned. Since MaxScale doesn't have access to the table in the database, the database name should be retrieved by parsing the query. |
| Comment by markus makela [ 2016-10-24 ] |
|
The query classifiers now return the queried database and table instead of the real one. |