From 60af7a3675554de9f25af9cb099a785082743f68 Mon Sep 17 00:00:00 2001 From: Nico Verwer Date: Tue, 23 Sep 2025 11:21:12 +0200 Subject: [PATCH] [bugfix] In the JMX bean for showing processes, ensure that the ID of the query is considered when calculating whether two queries have the same key. Closes https://github.com/eXist-db/monex/issues/299 --- .../java/org/exist/management/impl/ProcessReportMXBean.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/exist-core/src/main/java/org/exist/management/impl/ProcessReportMXBean.java b/exist-core/src/main/java/org/exist/management/impl/ProcessReportMXBean.java index 835dd03a00..2834388b2f 100644 --- a/exist-core/src/main/java/org/exist/management/impl/ProcessReportMXBean.java +++ b/exist-core/src/main/java/org/exist/management/impl/ProcessReportMXBean.java @@ -123,7 +123,9 @@ public int compareTo(final QueryKey other) { if (other == null) { return 1; } - + if (id != other.id) { + return Integer.compare(id, other.id); + } return key.compareTo(other.key); } }