[MXS-2750] COM_STMT_EXECUTE in transaction get unexpected result Created: 2019-10-31 Updated: 2021-05-24 Resolved: 2020-02-05 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | readwritesplit |
| Affects Version/s: | 2.2.21, 2.3.13 |
| Fix Version/s: | 2.5.0 |
| Type: | Bug | Priority: | Major |
| Reporter: | huangyouqian | Assignee: | markus makela |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||
| Sprint: | MXS-SPRINT-99 | ||||||||||||||||
| Description |
|
We fix MX-2521 by routing the execute stmts which n_params > 0 and no metadata to previous node, but it not works with transaction,
Suggestion: |
| Comments |
| Comment by Petros Moisiadis [ 2019-12-09 ] |
Since we know that the clients in our setup are using prepared statements, could the above errors be related with the issue described in this ticket? |
| Comment by markus makela [ 2020-01-20 ] |
|
Ernest0x I think it's unlikely that this bug would result in such an error. It's more likely that your problem is caused by |
| Comment by markus makela [ 2020-02-03 ] |
|
The metadata is now recorded every time the client sends it (this way updates to the metadata are stored properly). If a COM_STMT_EXECUTE is sent by the client without the metadata and the metadata has not been sent to the target server, it is added into the payload. |