You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by ge...@apache.org on 2024/03/27 02:31:51 UTC

(solr) branch branch_9x updated: SOLR-17113: fix backup response in case of exception (#2334)

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

gerlowskija pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/solr.git


The following commit(s) were added to refs/heads/branch_9x by this push:
     new a38b354c3cb SOLR-17113: fix backup response in case of exception (#2334)
a38b354c3cb is described below

commit a38b354c3cbe301259606353e6b59e48415ecbae
Author: Przemyslaw Ciezkowski <pc...@gmail.com>
AuthorDate: Wed Mar 27 03:21:36 2024 +0100

    SOLR-17113: fix backup response in case of exception (#2334)
    
    
    ---------
    
    Co-authored-by: Przemyslaw Ciezkowski <pc...@box.com>
    Co-authored-by: Jason Gerlowski <ge...@apache.org>
---
 solr/CHANGES.txt                                            | 2 ++
 solr/core/src/java/org/apache/solr/handler/SnapShooter.java | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 82437f814ee..b14878942ef 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -70,6 +70,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.java
index 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) {