This is an automated email from the ASF dual-hosted git repository.

frankchen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/druid.git


The following commit(s) were added to refs/heads/master by this push:
     new ed8da5a90ec Sort /status/properties keys (#18506)
ed8da5a90ec is described below

commit ed8da5a90ecac7f8e1508cea8a156826f1dafcc4
Author: Gabriel Chang <[email protected]>
AuthorDate: Sat Sep 13 16:56:42 2025 +0800

    Sort /status/properties keys (#18506)
---
 server/src/main/java/org/apache/druid/server/StatusResource.java | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/server/src/main/java/org/apache/druid/server/StatusResource.java 
b/server/src/main/java/org/apache/druid/server/StatusResource.java
index 50730de91bc..29aaae98c25 100644
--- a/server/src/main/java/org/apache/druid/server/StatusResource.java
+++ b/server/src/main/java/org/apache/druid/server/StatusResource.java
@@ -47,6 +47,7 @@ import java.util.List;
 import java.util.Map;
 import java.util.Properties;
 import java.util.Set;
+import java.util.TreeMap;
 
 /**
  *
@@ -81,7 +82,10 @@ public class StatusResource
   {
     Map<String, String> allProperties = Maps.fromProperties(properties);
     Set<String> hiddenProperties = druidServerConfig.getHiddenProperties();
-    return filterHiddenProperties(hiddenProperties, allProperties);
+    Map<String, String> filtered = filterHiddenProperties(hiddenProperties, 
allProperties);
+
+    //    Return the properties in sorted order
+    return new TreeMap<>(filtered);
   }
 
   /**


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to