[MXS-1828] multi_loaddata command connection closed by mxs Created: 2018-04-26 Updated: 2018-05-18 Resolved: 2018-05-18 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | readwritesplit |
| Affects Version/s: | 2.2 |
| Fix Version/s: | 2.3.0 |
| Type: | Bug | Priority: | Major |
| Reporter: | xiangzhong | Assignee: | markus makela |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
linux + make debug + mysql 5.6.16 |
||
| Sprint: | MXS-SPRINT-57, MXS-SPRINT-58 |
| Description |
|
case like:
loadfile: load_data.txt content by dump traffic between mxs and mysql, we find mxs not send completed packet to db:
there client actual send more a empty packet at end, but mxs drop this empty packet. and send quit packet to db a little while.
client not send this packet. |
| Comments |
| Comment by markus makela [ 2018-04-30 ] | |||||||||||||||
|
Managed to reproduce it with the following script.
| |||||||||||||||
| Comment by markus makela [ 2018-04-30 ] | |||||||||||||||
|
This is not very straightforward to fix in 2.2 as the LOAD DATA LOCAL INFILE processing is done when a query is received. The correct way to handle it would be to transition into a data processing state when the server responds with a LOCAL INFILE request packet and exit this state only when the client sends an empty packet. |