Apache Lucene open-source search software
add a bit of debug logging to help track down a jenkins fail
Mark Robert Millerb3db6e942616
diff --git a/solr/core/src/java/org/apache/solr/handler/SnapPuller.java b/solr/core/src/java/org/apache/solr/handler/SnapPuller.javaindex eb4a5f3039c..f70ee747cc5 100644--- a/solr/core/src/java/org/apache/solr/handler/SnapPuller.java+++ b/solr/core/src/java/org/apache/solr/handler/SnapPuller.java@@ -653,6 +653,18 @@ public class SnapPuller {+ " to: " + indexFileInIndex + " Trying to do a copy");FileUtils.copyFile(indexFileInTmpDir,indexFileInIndex);success = true;+ } catch (FileNotFoundException e) {+ if (!indexDir.exists()) {+ File parent = indexDir.getParentFile();+ String[] children = null;+ if (parent != null) {+ children = parent.list();+ }+ LOG.error("The index directory does not exist: " + indexDir.getAbsolutePath()+ + " dirs found: " + (children == null ? "none could be found" : Arrays.asList(children)));+ }+ LOG.error("Unable to copy index file from: " + indexFileInTmpDir+ + " to: " + indexFileInIndex , e);} catch (IOException e) {LOG.error("Unable to copy index file from: " + indexFileInTmpDir+ " to: " + indexFileInIndex , e);