[MXS-2720] maxctrl and maxadmin report negative number of connections to a service Created: 2019-10-09  Updated: 2019-10-29  Resolved: 2019-10-10

Status: Closed
Project: MariaDB MaxScale
Component/s: Core
Affects Version/s: 2.4.0, 2.4.1, 2.4.2
Fix Version/s: 2.3.13, 2.4.3

Type: Bug Priority: Blocker
Reporter: Assen Totin (Inactive) Assignee: markus makela
Resolution: Fixed Votes: 0
Labels: None


 Description   

This is likely a regression in 2.4, as with 2.3 everything work as expected.

For a read-write split (at least), both maxctrl and maxadmin show negative number of connections to a service (the total count of connections seems correct and incremented in time).

Connections to a server are shown properly.

Output from maxctrl:

[root@cgdsqlmax1 assen.totin]# maxctrl list services
┌─────────────────────┬────────────────┬─────────────┬───────────────────┬──────────────────────────┐
│ Service             │ Router         │ Connections │ Total Connections │ Servers                  │
├─────────────────────┼────────────────┼─────────────┼───────────────────┼──────────────────────────┤
│ MaxAdmin-Service    │ cli            │ 0           │ 0                 │                          │
├─────────────────────┼────────────────┼─────────────┼───────────────────┼──────────────────────────┤
│ 172.16.69.4-Service │ readwritesplit │ -837        │ 151603            │ 172.16.69.2, 172.16.69.3 │
└─────────────────────┴────────────────┴─────────────┴───────────────────┴──────────────────────────┘

Same, but for servers - connections are shown properly:

[root@cgdsqlmax1 assen.totin]# maxctrl list servers
┌─────────────┬─────────────┬──────┬─────────────┬─────────────────┬──────────────┐
│ Server      │ Address     │ Port │ Connections │ State           │ GTID         │
├─────────────┼─────────────┼──────┼─────────────┼─────────────────┼──────────────┤
│ 172.16.69.2 │ 172.16.69.2 │ 3306 │ 4           │ Master, Running │ 0-1-32720771 │
├─────────────┼─────────────┼──────┼─────────────┼─────────────────┼──────────────┤
│ 172.16.69.3 │ 172.16.69.3 │ 3306 │ 4           │ Slave, Running  │ 0-1-32720771 │
└─────────────┴─────────────┴──────┴─────────────┴─────────────────┴──────────────┘

This needs a fix as it breaks any attempt to monitor the load on a service in terms of concurrent connections.


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