[MXS-3978] Binlog router appends -BinlogRouter to master version string again and again ... Created: 2022-02-02  Updated: 2022-02-10  Resolved: 2022-02-03

Status: Closed
Project: MariaDB MaxScale
Component/s: binlogrouter
Affects Version/s: 2.5.18, 6.1.4
Fix Version/s: 2.5.19, 6.2.2

Type: Bug Priority: Minor
Reporter: Hartmut Holzgraefe Assignee: Esa Korhonen
Resolution: Fixed Votes: 0
Labels: None


 Description   

When having a binlog router, or especially multiple ones, in the server list of a monitor, a binlog router may receive a version string from the monitor that already includes the -BinlogRouter postfix, and then append it again, leading to version strings like:

10.5.13-MariaDB-1:10.5.13+maria~focal-log-BinlogRouter-BinlogRouter

or in the worst case:

10.5.13-MariaDB-1:10.5.13+maria~focal-log-BinlogRouter-BinlogRouter-BinlogRouter-BinlogRouter-BinlogRouter-BinlogRouter-BinlogRouter-BinlogRouter-BinlogRouter-BinlogRouter-BinlogRouter-BinlogRouter-BinlogRouter-BinlogRouter-BinlogRouter-BinlogRouter-Binlog-BinlogRouter

Note that the 2nd but last instance just reads Binlog here, so it seems that upon appending the version string is shortened first when exceeding a certain limit, after which -BinlogRouter is appended to it again.

When having just one binlog router as part of the monitored servers I'm seeing -BinlogRouter added twice initially when starting up my test VM setup, but when restarting the maxscale service it goes down to just one, and stays like that.

When having a setup with two maxscale instances providing a binlog router for the same replication setup each, and each maxscale monitoring both its own and the others binlog router instance, restarting a maxscale instance a few times can quickly lead to enough -BinlogRouter postfixes being appended to reach the max. version string length limit.

Proposed fix: either just check whether the version string already ends in -BinlogRouter and do not append it again in that case, or maybe exclude such "special" version strings from what the monitor returns as server version to begin with?


Generated at Thu Feb 08 04:25:19 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.