[MXS-2962] Output of 'status' wrong when connected to a backend server via schema router. Created: 2020-04-12 Updated: 2020-10-12 Resolved: 2020-10-12 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | schemarouter |
| Affects Version/s: | 2.4.8 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Minor |
| Reporter: | Oy5p aegh | Assignee: | markus makela |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | need_feedback | ||
| Environment: |
Debian 10 (Buster) |
||
| Description |
|
When accessing a database which only resides on srv02 with
... and executing the 'status' command. The Output of the command shows the status of srv01 instead of srv02. /var/log/maxscale/maxscale.log
-
maxscale.cnf
|
| Comments |
| Comment by markus makela [ 2020-04-14 ] | |||||||||||||||||||||||||||||||||||
|
I believe this is expected behavior as the SHOW STATUS command doesn't depend on a database so it picks the least used candidate it finds which happens to be srv1. I think we could tune the behavior so that it if a default database is given, these types of "trivial" queries would be preferably routed to servers which have the default database. | |||||||||||||||||||||||||||||||||||
| Comment by markus makela [ 2020-06-01 ] | |||||||||||||||||||||||||||||||||||
|
After investigating and looking at the code, the default behavior for unknown queries is to route them to the server with the current active database:
Can you give a reproducible test case that we could use? | |||||||||||||||||||||||||||||||||||
| Comment by markus makela [ 2020-08-20 ] | |||||||||||||||||||||||||||||||||||
|
Oy5p aegh any updates on this issue? Have you had a chance to try whether this happens with the 2.5 version of MaxScale? | |||||||||||||||||||||||||||||||||||
| Comment by markus makela [ 2020-08-27 ] | |||||||||||||||||||||||||||||||||||
|
Oy5p aegh please test this with the latest 2.5 release of MaxScale. | |||||||||||||||||||||||||||||||||||
| Comment by markus makela [ 2020-10-12 ] | |||||||||||||||||||||||||||||||||||
|
Closing as Cannot Reproduce as there's been no replies. |