Hi,
I sometimes get FileNotFoundExceptions from the recovery of a core in my
log. Does anyone know the reason for this? As I understand Solr this may
(or should) not happen.
Markus
2015-08-04
15:06:07,646|INFO|mpKPXpbUwp|org.apache.solr.update.UpdateLog|Starting to
buffer updates. FSUpdateLog{state=ACTIVE,
tlog=tlog{file=/www/solrcloud/data/1yy0uawc-products/tlog/tlog.0000000000000073861
refcount=1}}
2015-08-04
15:06:07,646|INFO|mpKPXpbUwp|org.apache.solr.cloud.RecoveryStrategy|Attempting
to replicate from http://<solr-host>/solr/1yy0uawc-products/.
core=1yy0uawc-products
2015-08-04
15:06:07,833|INFO|mpKPXpbUwp|org.apache.solr.handler.IndexFetcher|Master's
generation: 87681
2015-08-04
15:06:07,833|INFO|mpKPXpbUwp|org.apache.solr.handler.IndexFetcher|Slave's
generation: 87679
2015-08-04
15:06:07,833|INFO|mpKPXpbUwp|org.apache.solr.handler.IndexFetcher|Starting
replication process
2015-08-04
15:06:07,886|INFO|mpKPXpbUwp|org.apache.solr.handler.IndexFetcher|Number of
files in latest index in master: 82
2015-08-04
15:06:07,887|INFO|mpKPXpbUwp|org.apache.solr.core.CachingDirectoryFactory|return
new directory for
/www/solrcloud/data/1yy0uawc-products/index.20150804150607887
2015-08-04
15:06:07,892|INFO|mpKPXpbUwp|org.apache.solr.core.CachingDirectoryFactory|looking
to close /www/solrcloud/data/1yy0uawc-products/index.20150804150607887
[CachedDir<<refCount=0;path=/www/solrcloud/data/1yy0uawc-products/index.20150804150607887;done=true>>]
2015-08-04
15:06:07,892|INFO|mpKPXpbUwp|org.apache.solr.core.CachingDirectoryFactory|Closing
directory: /www/solrcloud/data/1yy0uawc-products/index.20150804150607887
2015-08-04
15:06:07,892|INFO|mpKPXpbUwp|org.apache.solr.core.CachingDirectoryFactory|Removing
directory before core close:
/www/solrcloud/data/1yy0uawc-products/index.20150804150607887
2015-08-04
15:06:07,892|ERROR|mpKPXpbUwp|org.apache.solr.common.SolrException|Index
fetch failed :org.apache.solr.common.SolrException: Index fetch failed :
at
org.apache.solr.handler.IndexFetcher.fetchLatestIndex(IndexFetcher.java:515)
at
org.apache.solr.handler.IndexFetcher.fetchLatestIndex(IndexFetcher.java:254)
at
org.apache.solr.handler.ReplicationHandler.doFetch(ReplicationHandler.java:380)
at
org.apache.solr.cloud.RecoveryStrategy.replicate(RecoveryStrategy.java:161)
at
org.apache.solr.cloud.RecoveryStrategy.doRecovery(RecoveryStrategy.java:440)
at
org.apache.solr.cloud.RecoveryStrategy.run(RecoveryStrategy.java:229)
Caused by: java.nio.file.NoSuchFileException:
/www/solrcloud/data/1yy0uawc-products/index.20150803081018547/segments_1vnj
at
sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
at
sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at
sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
at
sun.nio.fs.UnixFileSystemProvider.newFileChannel(UnixFileSystemProvider.java:177)
at java.nio.channels.FileChannel.open(FileChannel.java:287)
at java.nio.channels.FileChannel.open(FileChannel.java:335)
at
org.apache.lucene.store.MMapDirectory.openInput(MMapDirectory.java:213)
at
org.apache.lucene.store.Directory.openChecksumInput(Directory.java:110)
at
org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:281)
at
org.apache.solr.handler.IndexFetcher.fetchLatestIndex(IndexFetcher.java:371)
... 5 more
2015-08-04
15:06:07,892|ERROR|mpKPXpbUwp|org.apache.solr.common.SolrException|Error
while trying to recover:org.apache.solr.common.SolrException: Replication
for recovery failed.
at
org.apache.solr.cloud.RecoveryStrategy.replicate(RecoveryStrategy.java:164)
at
org.apache.solr.cloud.RecoveryStrategy.doRecovery(RecoveryStrategy.java:440)
at
org.apache.solr.cloud.RecoveryStrategy.run(RecoveryStrategy.java:229)
2015-08-04
15:06:07,893|INFO|mpKPXpbUwp|org.apache.solr.update.UpdateLog|Dropping
buffered updates FSUpdateLog{state=BUFFERING,
tlog=tlog{file=/www/solrcloud/data/1yy0uawc-products/tlog/tlog.0000000000000073861
refcount=1}}
2015-08-04
15:06:07,893|ERROR|mpKPXpbUwp|org.apache.solr.cloud.RecoveryStrategy|Recovery
failed - trying again... (0) core=1yy0uawc-products
2015-08-04
15:06:07,893|INFO|mpKPXpbUwp|org.apache.solr.cloud.RecoveryStrategy|Wait
2.0 seconds before trying to recover again (1)