[MXS-2501] filter hint route to master , can't send 2 requests Created: 2019-05-22 Updated: 2019-10-18 Resolved: 2019-10-18 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | hintfilter |
| Affects Version/s: | 2.3.7 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Minor |
| Reporter: | Stephane | Assignee: | markus makela |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | None | ||
| Environment: |
centos 7, php7, mysqli |
||
| Description |
|
Hello, We recently migrated from 1.3 to 2.3.7, and our application is/was using the filter hint Under 2.3.7, we noticed that it works for the first mysqli request, but if we do another request just after, we got a NULL reply. So, if we use a hintfilter, we are obliged to call again a mysqli_connect (this was not the case under 1.3.) Not sure if it's a bug or something new, is there a way to fix this ? thanks in advance, |
| Comments |
| Comment by markus makela [ 2019-05-22 ] |
|
We would need more information:
|
| Comment by Stephane [ 2019-05-22 ] |
|
the maxscale configuration: [MySQL Monitor VHD] [MySQL Monitor Accounts] [MySQL Monitor Torrents] [MySQL Monitor Others] [qla] [fetch] [hint] [RWVHD] [VHDLISTENER] [RWACCOUNTS] [ACCOUNTSLISTENER] [RWTORRENTS] [TORRENTSLISTENER] [RWOTHERS] [OTHERSLISTENER] [dbvhd1] [dbvhd2] [dbaccounts1] [dbaccounts2] [dbtorrents1] [dbtorrents2] [dbothers1] [dbothers2] [CLI] [CLI Listener] -------------------------------------- error logs: nothing shows up in the maxscale logs when it happens. and during the php script, no error as well, just the mysqli response which is NULL, and then the mysqli handle state which becomes ["sqlstate"]=> string(5) "HY000" (service concerned in the conf above: RWVHD) ------------------ |
| Comment by markus makela [ 2019-07-02 ] |
|
Does it return any sort of an error? The SQLSTATE suggests that something caused an error to be sent to the client. |
| Comment by Stephane [ 2019-07-03 ] |
|
no error, only if I send the second request, it returns null. if I look at the sql state before sending the second request, no error. |
| Comment by markus makela [ 2019-07-03 ] |
|
You can add log_info=1 under the [maxscale] section in the configuration file and restart maxscale to enable verbose logging. Please enable it and try again: the log messages should explain what is happening and where the queries are routed. Once you have the log with log_info=1, make sure there's on sensitive information in it and attach it to this issue. |
| Comment by markus makela [ 2019-10-18 ] |
|
Closing as Cannot Reproduce due to no updates on this. If you still see the problem with the latest version, please provide the logs and an example test case that reproduces it. |