[MXS-4627] Rebalancing is unsafe to use with readwritesplit Created: 2023-06-01 Updated: 2023-06-07 Resolved: 2023-06-07 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | readconnroute, readwritesplit |
| Affects Version/s: | 22.08.6, 23.02.2 |
| Fix Version/s: | 22.08.7 |
| Type: | Bug | Priority: | Major |
| Reporter: | markus makela | Assignee: | markus makela |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Readwritesplit and readconnroute store a reference to a thread-local value and use it for the duration of the whole session. If a rebalancing occurs, the reference will point to a thread-local value on another thread. This can result in crashes or memory leaks if rebalancing is used with readwritesplit. With readconnroute this will only result in some statistics being wrong. |