Activity log for bug #2073932

Date Who What changed Old value New value Message
2024-07-23 21:45:42 Jorge Merlino bug added bug
2024-07-23 21:46:14 Jorge Merlino nominated for series Ubuntu Jammy
2024-07-23 21:46:14 Jorge Merlino bug task added rabbitmq-server (Ubuntu Jammy)
2024-07-23 21:46:24 Jorge Merlino rabbitmq-server (Ubuntu Jammy): assignee Jorge Merlino (jorge-merlino)
2024-07-23 21:47:21 Jorge Merlino description [Impact] When a client terminates uncleanly, the global counters for publishers and consumers do not handle this gracefully. For the consumer metric, the value of the gauge does not decrease after the termination, and so the value ever-increases. For the publisher metric, the value of the gauge decreases below zero and does not recover, leading to a ever-decreasing negative value on the gauge. [Test plan] lxc launch ubuntu:jammy rabbitmq-jammy-test lxc shell rabbitmq-jammy-test apt install -y rabbitmq-server echo '[rabbitmq_prometheus].' > /etc/rabbitmq/enabled_plugins systemctl restart rabbitmq-server.service wget https://github.com/rabbitmq/rabbitmq-perf-test/releases/download/v2.21.0/perf-test-2.21.0.jar apt install -y default-jre for i in $(seq 1 5); do java -jar perf-test-2.21.0.jar --time 5; curl -s 127.0.0.1:15692/metrics | grep -E 'rabbitmq_global_(consumers|publishers){'; done The output of this command shows the value of the rabbitmq_global_consumers and rabbitmq_global_publishers after each execution of the test. The problem described of monotonically increasing and decreasing values will be observed. As we are connecting and disconnecting a single client the expected value should be 0 for both counters. [Where problems could occur] This is a simple patch that calls the functions for deleting consumers and publishers in the correct places. It should not break anything else than the counters themselves but they were broken to begin with. [Other Info] This was patched upstream from version 3.10 so this patch is already applied to Noble and Oracular that use version 3.12. [Impact] When a client terminates uncleanly, the global counters for publishers and consumers do not handle this gracefully. For the consumer metric, the value of the gauge does not decrease after the termination, and so the value ever-increases. For the publisher metric, the value of the gauge decreases below zero and does not recover, leading to a ever-decreasing negative value on the gauge. [Test plan] lxc launch ubuntu:jammy rabbitmq-jammy-test lxc shell rabbitmq-jammy-test apt install -y rabbitmq-server echo '[rabbitmq_prometheus].' > /etc/rabbitmq/enabled_plugins systemctl restart rabbitmq-server.service wget https://github.com/rabbitmq/rabbitmq-perf-test/releases/download/v2.21.0/perf-test-2.21.0.jar apt install -y default-jre for i in $(seq 1 5); do java -jar perf-test-2.21.0.jar --time 5; curl -s 127.0.0.1:15692/metrics | grep -E 'rabbitmq_global_(consumers|publishers){'; done The output of this command shows the value of the rabbitmq_global_consumers and rabbitmq_global_publishers after each execution of the test. The problem described of monotonically increasing and decreasing values will be observed. As we are connecting and disconnecting a single client the expected value should be 0 for both counters. [Where problems could occur] This is a simple patch that calls the functions for deleting consumers and publishers in the correct places. It should not break anything else than the counters themselves but they were broken to begin with. [Other Info] This was patched upstream from version 3.10 so this patch is already applied to Noble and Oracular that use version 3.12. This is the upstream patch: https://github.com/rabbitmq/rabbitmq-server/pull/6244
2024-07-23 22:04:31 Jorge Merlino attachment added lp2073932_jammy.debdiff https://bugs.launchpad.net/ubuntu/+source/rabbitmq-server/+bug/2073932/+attachment/5799814/+files/lp2073932_jammy.debdiff
2024-07-23 22:04:58 Jorge Merlino rabbitmq-server (Ubuntu Jammy): status New In Progress
2024-07-23 22:05:50 Jorge Merlino tags sts
2024-07-23 22:06:22 Jorge Merlino bug added subscriber Support Engineering Sponsors
2024-07-24 00:26:47 Ubuntu Foundations Team Bug Bot tags sts patch sts
2024-07-24 00:26:51 Ubuntu Foundations Team Bug Bot bug added subscriber Ubuntu Sponsors
2024-07-26 21:18:23 Mauricio Faria de Oliveira rabbitmq-server (Ubuntu Jammy): status In Progress Incomplete
2024-07-26 21:18:33 Mauricio Faria de Oliveira rabbitmq-server (Ubuntu): status New Fix Released