Apache Solr open-source search software
SOLR-17113: fix backup response in case of exception (#2334)
Przemyslaw Ciezkowski883fd6d941c3
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex aaad28d8461..aa61877e882 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -152,6 +152,8 @@ Bug Fixes* SOLR-17209: Fix NullPointerException in QueryComponent (Vincent Primault via Eric Pugh)+* SOLR-17113: Correct how `/replication?command=details` describes errors in backup operations. (Przemyslaw Ciezkowski via Christine Poerschke and Jason Gerlowski)+Dependency Upgrades---------------------diff --git a/solr/core/src/java/org/apache/solr/handler/SnapShooter.java b/solr/core/src/java/org/apache/solr/handler/SnapShooter.javaindex 4f2beb51983..9939f07ddf6 100644--- a/solr/core/src/java/org/apache/solr/handler/SnapShooter.java+++ b/solr/core/src/java/org/apache/solr/handler/SnapShooter.java@@ -255,7 +255,7 @@ public class SnapShooter {V2ApiUtils.squashIntoNamedListWithoutHeader(snapShootDetails, createSnapshot());} catch (Exception e) {log.error("Exception while creating snapshot", e);- snapShootDetails = new NamedList<>();+ snapShootDetails = new SimpleOrderedMap<>();snapShootDetails.add("exception", e.getMessage());}if (snapshotName == null) {