[MXS-2674] QC bugs Created: 2019-09-12 Updated: 2019-09-19 Resolved: 2019-09-16 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | qc_sqlite |
| Affects Version/s: | 2.2.21 |
| Fix Version/s: | 2.3.12, 2.4.3 |
| Type: | Bug | Priority: | Major |
| Reporter: | dapeng huang | Assignee: | Johan Wikman |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
| Comments |
| Comment by Johan Wikman [ 2019-09-12 ] | |||||||||||||||
|
The situation in 2.3 and 2.4 is not exactly the same.
| |||||||||||||||
| Comment by Johan Wikman [ 2019-09-16 ] | |||||||||||||||
|
In 2.3 and 2.4, the result is now.
In principle #3 should be QUERY_TYPE_USERVAR_WRITE|QUERY_TYPE_SYSVAR_READ, but that has no impact as far as routing goes; either way the statement will be routed to all servers. #2 was fixed in 2.3 by cherry-picking commit 01ab0c873698c60254555bfcd936c50433edc4a0 from 2.4. | |||||||||||||||
| Comment by dapeng huang [ 2019-09-19 ] | |||||||||||||||
|
if use_sql_variables_in=master, QUERY_TYPE_USERVAR_WRITE will route to master; | |||||||||||||||
| Comment by Johan Wikman [ 2019-09-19 ] | |||||||||||||||
|
Ok, I think you are correct. I will address that. | |||||||||||||||
| Comment by Johan Wikman [ 2019-09-19 ] | |||||||||||||||
|
dapeng We will change this so that we introduce a new query classifier operator QUERY_OP_SET, which will cause RWS to send the statement to all servers. | |||||||||||||||
| Comment by Johan Wikman [ 2019-09-19 ] | |||||||||||||||
|
Actually, we'll change it so that all SET statements will be classified as QUERY_TYPE_SESSION_WRITE. |