[MXS-951] Using utf8mb4 on galera hosts stops maxscale connections Created: 2016-10-19 Updated: 2017-01-27 Resolved: 2017-01-18 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | galeramon, readwritesplit |
| Affects Version/s: | 2.0.1 |
| Fix Version/s: | 2.1.0 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Simon Hanmer | Assignee: | markus makela |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | maxscale, utf8mb4 | ||
| Environment: |
Centos 7.1 64 bit installed using 64 bit rpms from mariadb repositories |
||
| Issue Links: |
|
||||||||
| Sprint: | 2016-21, 2016-22, 2016-23, 2016-24, 2017-25 | ||||||||
| Description |
|
Our hosts in the galera cluster are configured to use character set utf8mb4. If we try and configure maxscale to connect with this configuration, it will fail with errors such as :
If we change the galera hosts to use character set utf8, this works without issue. |
| Comments |
| Comment by Timofey Turenko [ 2016-11-02 ] | |||||||||||||||||||||||||||||
|
I've tried to reproduce it. I tried to issue SET GLOBAL character_set_server = 'utf8mb4'; and SET NAMES 'utf8mb4'; against all backend servers and then restart maxscale. | |||||||||||||||||||||||||||||
| Comment by Simon Hanmer [ 2016-11-03 ] | |||||||||||||||||||||||||||||
|
I've just rebuilt our config - we're using these packages:
I've pasted our /etc/my.cnf.d/server.cnf below (with nodenames and passwd hash obfuscated):
with this setup, the cluster runs and connects but maxscale won't connect saying the servers are down. However if I change the language configuration as below and restart the mariadb servers, maxscale can connect:
| |||||||||||||||||||||||||||||
| Comment by Timofey Turenko [ 2016-12-29 ] | |||||||||||||||||||||||||||||
|
Reproduced, test added. Moving to developers | |||||||||||||||||||||||||||||
| Comment by markus makela [ 2017-01-02 ] | |||||||||||||||||||||||||||||
|
This seems to be a problem with the character sets that are compiled into the Connector/C we are using. I took a look at the source code and noticed that the utf8mb4_unicode_520_ci is missing from the list of character sets that are compiled. | |||||||||||||||||||||||||||||
| Comment by markus makela [ 2017-01-04 ] | |||||||||||||||||||||||||||||
|
Requires an update of the connector. | |||||||||||||||||||||||||||||
| Comment by markus makela [ 2017-01-18 ] | |||||||||||||||||||||||||||||
|
Updated connector version to 2.3.2. |