You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ma...@apache.org on 2012/06/09 21:55:59 UTC

svn commit: r1348492 - /lucene/dev/trunk/solr/core/src/java/org/apache/solr/handler/SnapPuller.java

Author: markrmiller
Date: Sat Jun  9 19:55:58 2012
New Revision: 1348492

URL: http://svn.apache.org/viewvc?rev=1348492&view=rev
Log:
add a bit of debug logging to help track down a jenkins fail

Modified:
    lucene/dev/trunk/solr/core/src/java/org/apache/solr/handler/SnapPuller.java

Modified: lucene/dev/trunk/solr/core/src/java/org/apache/solr/handler/SnapPuller.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/java/org/apache/solr/handler/SnapPuller.java?rev=1348492&r1=1348491&r2=1348492&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/java/org/apache/solr/handler/SnapPuller.java (original)
+++ lucene/dev/trunk/solr/core/src/java/org/apache/solr/handler/SnapPuller.java Sat Jun  9 19:55:58 2012
@@ -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);