Skip to content

Commit 883fd6d

Browse files
stforekPrzemyslaw Ciezkowskigerlowskija
authored
SOLR-17113: fix backup response in case of exception (#2334)
--------- Co-authored-by: Przemyslaw Ciezkowski <[email protected]> Co-authored-by: Jason Gerlowski <[email protected]>
1 parent b08e8d9 commit 883fd6d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

solr/CHANGES.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ Bug Fixes
152152

153153
* SOLR-17209: Fix NullPointerException in QueryComponent (Vincent Primault via Eric Pugh)
154154

155+
* SOLR-17113: Correct how `/replication?command=details` describes errors in backup operations. (Przemyslaw Ciezkowski via Christine Poerschke and Jason Gerlowski)
156+
155157
Dependency Upgrades
156158
---------------------
157159

solr/core/src/java/org/apache/solr/handler/SnapShooter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ public void createSnapAsync(final int numberToKeep, Consumer<NamedList<?>> resul
255255
V2ApiUtils.squashIntoNamedListWithoutHeader(snapShootDetails, createSnapshot());
256256
} catch (Exception e) {
257257
log.error("Exception while creating snapshot", e);
258-
snapShootDetails = new NamedList<>();
258+
snapShootDetails = new SimpleOrderedMap<>();
259259
snapShootDetails.add("exception", e.getMessage());
260260
}
261261
if (snapshotName == null) {

0 commit comments

Comments
 (0)