Author: cutting Date: Tue Nov 22 10:46:43 2005 New Revision: 348210 URL: http://svn.apache.org/viewcvs?rev=348210&view=rev Log: Silently ignore missing checksum files.
Modified: lucene/nutch/branches/mapred/src/java/org/apache/nutch/fs/NFSDataInputStream.java Modified: lucene/nutch/branches/mapred/src/java/org/apache/nutch/fs/NFSDataInputStream.java URL: http://svn.apache.org/viewcvs/lucene/nutch/branches/mapred/src/java/org/apache/nutch/fs/NFSDataInputStream.java?rev=348210&r1=348209&r2=348210&view=diff ============================================================================== --- lucene/nutch/branches/mapred/src/java/org/apache/nutch/fs/NFSDataInputStream.java (original) +++ lucene/nutch/branches/mapred/src/java/org/apache/nutch/fs/NFSDataInputStream.java Tue Nov 22 10:46:43 2005 @@ -54,7 +54,9 @@ if (!Arrays.equals(version, VERSION)) throw new IOException("Not a checksum file: "+sumFile); bytesPerSum = sums.readInt(); - } catch (IOException e) { + } catch (FileNotFoundException e) { // quietly ignore + stopSumming(); + } catch (IOException e) { // loudly ignore LOG.warning("Problem opening checksum file: "+e+". Ignoring."); stopSumming(); }