[MXS-4947] Tables in information_schema are treated as a normal tables Created: 2024-01-22  Updated: 2024-02-05  Resolved: 2024-01-29

Status: Closed
Project: MariaDB MaxScale
Component/s: schemarouter
Affects Version/s: 6.4.10
Fix Version/s: 6.4.14, 22.08.12, 23.02.9, 23.08.5

Type: Bug Priority: Major
Reporter: markus makela Assignee: markus makela
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to MXS-4966 mariadb-dump gets an error dumping sc... Open

 Description   

The tables in the information_schema are treated like normal user-created tables and get route to any of the nodes where they are found. This makes it hard to use queries that target these tables in conjunction with other queries. A JOIN to an information_schema still works correctly and can sometimes be used as a workaround.

An improvement to the current behavior would be that if a default database is set and the query only targets tables that are "system tables" (mysql, information_schema, sys, etc.), the query should be routed based on the default database instead. If no default database is set but a previous query was executed, it could be routed to that node. This would at least allow "priming" the queries by doing a SHOW TABLES IN <db> after which the next query to information_schema would then be routed in the correct manner.


Generated at Thu Feb 08 04:32:17 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.