From 49e2072952f514e74f525dc5ca2d8ed28aaa4f9a Mon Sep 17 00:00:00 2001 From: Serhiy Bzhezytskyy Date: Fri, 21 Aug 2026 13:48:38 +0300 Subject: [PATCH] SOLR-18149: un-deprecate ClusterState.createFromJson The only reason it was deprecated (SOLR-17561) was 'doesn't support legacy configName location' -- David Smiley confirmed on the ticket that this is a Solr 8 concern, not relevant from 9 forward, and no such legacy-location code path exists anywhere in the current parsing. No behavior change; the caveat was already dead documentation. --- .../src/java/org/apache/solr/common/cloud/ClusterState.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/solr/solrj/src/java/org/apache/solr/common/cloud/ClusterState.java b/solr/solrj/src/java/org/apache/solr/common/cloud/ClusterState.java index ba92c3a9011a..de1ac7cda891 100644 --- a/solr/solrj/src/java/org/apache/solr/common/cloud/ClusterState.java +++ b/solr/solrj/src/java/org/apache/solr/common/cloud/ClusterState.java @@ -198,8 +198,7 @@ public String toString() { } /** - * Create a ClusterState from Json. This method doesn't support legacy configName location and - * thus don't call it where that's important + * Create a ClusterState from Json. * * @param bytes a byte array of a Json representation of a mapping from collection name to the * Json representation of a {@link DocCollection} as written by {@link #write(JSONWriter)}. It @@ -209,7 +208,6 @@ public String toString() { * {@link ClusterState} * @return the ClusterState */ - @Deprecated public static ClusterState createFromJson( int version, byte[] bytes,