From 391adfb5e3b616a097781dd906faa1b8e08022fe Mon Sep 17 00:00:00 2001 From: Akash Chandra Date: Fri, 27 Dec 2024 19:02:22 +0530 Subject: [PATCH] fix: TOOLS-2984 update outdated hist info cmd from latencies --- lib/live_cluster/client/node.py | 5 ++++- test/unit/live_cluster/client/test_node.py | 7 +++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/lib/live_cluster/client/node.py b/lib/live_cluster/client/node.py index 8b83ea00..d674f69b 100644 --- a/lib/live_cluster/client/node.py +++ b/lib/live_cluster/client/node.py @@ -2065,9 +2065,11 @@ async def info_latencies( namespaces = (await self._info("namespaces")).split(";") except Exception: return data + micro_benchmarks = [ "proxy", - "benchmark-fabric", + "read-touch", + "re-repl", "benchmarks-ops-sub", "benchmarks-read", "benchmarks-write", @@ -2075,6 +2077,7 @@ async def info_latencies( "benchmarks-udf-sub", "benchmarks-batch-sub", ] + cmd_latencies += [ "latencies:hist={%s}-%s" % (ns, optional) for ns in namespaces diff --git a/test/unit/live_cluster/client/test_node.py b/test/unit/live_cluster/client/test_node.py index 283ba302..81beb6c6 100644 --- a/test/unit/live_cluster/client/test_node.py +++ b/test/unit/live_cluster/client/test_node.py @@ -1743,11 +1743,14 @@ async def test_info_latencies_verbose(self): _ = await self.node.info_latencies(verbose=True) - self.assertEqual(self.info_mock.call_count, 10) + self.assertEqual(self.info_mock.call_count, 11) self.info_mock.assert_any_call("latencies:", self.ip) self.info_mock.assert_any_call("latencies:hist={test}-proxy", self.ip) self.info_mock.assert_any_call( - "latencies:hist={test}-benchmark-fabric", self.ip + "latencies:hist={test}-read-touch", self.ip + ) + self.info_mock.assert_any_call( + "latencies:hist={test}-re-repl", self.ip ) self.info_mock.assert_any_call( "latencies:hist={test}-benchmarks-ops-sub", self.ip