3

运行 Solr 6.0.1,我偶尔会在日志中收到此警告。过去几个小时内发生的时间是 1:43:27、1:53:26、2:11:06、2:17:26、2:21:46、2:22:26,这是完整的错误...

时间:2016 年 8 月 11 日下午 2:27:26

级别:WARN true

记录器:IndexFetcher

消息:更新统计信息时出现异常

详细信息: java.nio.file.AccessDeniedException: C:\solr-6.0.1\server\solr\MySolrCore\data\replication.properties at sun.nio.fs.WindowsException.translateToIOException(Unknown Source) at sun.nio.fs .WindowsException.rethrowAsIOException(Unknown Source) at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source) at sun.nio.fs.WindowsFileSystemProvider.newByteChannel(Unknown Source) at java.nio.file.spi.FileSystemProvider.newOutputStream(Unknown来源)在 java.nio.file.Files.newOutputStream(未知来源)在 org.apache.lucene.store.FSDirectory$FSIndexOutput.(FSDirectory.java:408) 在 org.apache.lucene.store.FSDirectory$FSIndexOutput.( FSDirectory.java:404) 在 org.apache.lucene.store.FSDirectory.createOutput(FSDirectory.java:253) 在 org.apache.lucene.store.NRTCachingDirectory。createOutput(NRTCachingDirectory.java:157) at org.apache.solr.handler.IndexFetcher.logReplicationTimeAndConfFiles(IndexFetcher.java:688) at org.apache.solr.handler.IndexFetcher.fetchLatestIndex(IndexFetcher.java:500) at org.apache .solr.handler.IndexFetcher.fetchLatestIndex(IndexFetcher.java:270) 在 org.apache.solr.handler.ReplicationHandler.doFetch(ReplicationHandler.java:387) 在 org.apache.solr.handler.ReplicationHandler.lambda$setupPolling$0( ReplicationHandler.java:1088) 在 java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) 在 java.util.concurrent.FutureTask.runAndReset(Unknown Source) 在 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(未知来源)在 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask。在 java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) run(Unknown Source)

这只是一个警告,但您知道为什么会发生这种情况,以及如何防止它发生吗?

我还收到另一个在核心启动时出现两次的警告:Logger: IndexFetcher, Message: 'masterUrl' must be specified without the /replication 后缀。如果我在配置中去掉 /replication 后缀,那么我的复制将不起作用。我包含此错误是因为上述警告中的文件是replication.properties,并且两个警告都涉及replicationiton,因此它们可能相关也可能不相关。消除这两个警告将是理想的。谢谢。

4

0 回答 0