[MXS-4199] SchemaRouter cannot handle schemas in upper case letters Created: 2022-07-09 Updated: 2022-07-13 Resolved: 2022-07-13 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | schemarouter |
| Affects Version/s: | 6.3.1 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Edward Stoever | Assignee: | markus makela |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Tested version 6.3.1 The existence of any schemas with names in UPPER CASE letters or Mixed Case letters will produce strange behaviors in maxscale schemarouter: Strange behavior #1: Strange Behavior #2: Strange Behavior #3:
Strange Behavior #4 |
| Comments |
| Comment by markus makela [ 2022-07-11 ] |
|
The schemarouter is documented to compare table and database names case-insensitively:
Does this happen with the latest version 6 release? If it does, can you provide an example that fully reproduces the problems? |
| Comment by Edward Stoever [ 2022-07-12 ] |
|
This behavior was discovered in release 6.3.1. The problem is easy to reproduce. I could make a video to show you the behavior. Nevertheless, you can see it right there from my command line. It does not recognize that there is a schema called JJ. – Edward |
| Comment by Edward Stoever [ 2022-07-12 ] |
|
Please watch this 4 minute demonstration: |
| Comment by markus makela [ 2022-07-13 ] |
|
For some reason it's not loading for me at this moment. Can you plese write the steps in text? There were some fixes done to the schemarouter for the 6.4.0 release and it would be good to rule them out as the cause. If you can, please test this with the 6.4.0 release to make sure. |
| Comment by markus makela [ 2022-07-13 ] |
|
A couple of configuration related things:
|
| Comment by markus makela [ 2022-07-13 ] |
|
Tested with 6.4.0 and lower_case_table_names on all database nodes as well as authenticator_options=lower_case_table_names=2 in the listener and auth_all_servers=true in the service and it seems to work as expected. If the database itself doesn't have lower_case_table_names enabled, the schemarouter does successfully route the query to the correct backend but the database ends up rejecting it due to case-sensitivity being on. |
| Comment by markus makela [ 2022-07-13 ] |
|
I'll close this as Cannot Reproduce as it seems to be working as expected in 6.4.0: table and database names are compared case-insensitively. If you can still reproduce this with 6.4.0, please enable log_info and attach the logs it generates. Also if you can give a reproducible test case, that would help. |