Skip to content

Commit 995b7fa

Browse files
jkmuriithijmuriithi3
andauthored
SOLR-16470: Include IOException in logs when DirectoryFileStream fails (#3373)
Log the DirectoryFileStream IOException on failure --------- Co-authored-by: jmuriithi3 <jmuriithi3@bloomberg.net>
1 parent eebb381 commit 995b7fa

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

solr/core/src/java/org/apache/solr/handler/admin/api/ReplicationAPIBase.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,8 @@ public void write(OutputStream out) throws IOException {
430430
sLen,
431431
compress,
432432
indexGen,
433-
useChecksum);
433+
useChecksum,
434+
e);
434435
} finally {
435436
IOUtils.closeQuietly(in);
436437
if (dir != null) {
@@ -516,7 +517,8 @@ public void write(OutputStream out) throws IOException {
516517
sLen,
517518
compress,
518519
indexGen,
519-
useChecksum);
520+
useChecksum,
521+
e);
520522
} finally {
521523
extendReserveAndReleaseCommitPoint();
522524
}

0 commit comments

Comments
 (0)