neo4j产生不识别文件导致读写报错
发布于 7 年前 作者 lanbing 3583 次浏览 来自 问答

数据库中数据大约120G,日志如下: ’’'2017-10-24 01:40:25.639+0000 ERROR [o.n.b.v.r.i.ErrorReporter] Client triggered an unexpected error [TransactionStartFailed]: Database has encountered some problem, please perform necessary action (tx recovery/restart). See debug.log for more details, reference 5f130a92-42e0-4871-98cc-d6f9f0228c29. 2017-10-24 01:40:25.639+0000 ERROR [o.n.b.v.r.i.ErrorReporter] Client triggered an unexpected error [TransactionStartFailed]: Database has encountered some problem, please perform necessary action (tx recovery/restart), reference 5f130a92-42e0-4871-98cc-d6f9f0228c29. Database has encountered some problem, please perform necessary action (tx recovery/restart) org.neo4j.graphdb.TransactionFailureException: Database has encountered some problem, please perform necessary action (tx recovery/restart) at org.neo4j.kernel.impl.factory.ClassicCoreSPI.beginTransaction(ClassicCoreSPI.java:180) at org.neo4j.kernel.impl.factory.GraphDatabaseFacade.beginTransaction(GraphDatabaseFacade.java:342) at org.neo4j.bolt.v1.runtime.internal.StandardStateMachineSPI.beginTransaction(StandardStateMachineSPI.java:88) at org.neo4j.bolt.v1.runtime.internal.SessionStateMachine$State$2.beginImplicitTransaction(SessionStateMachine.java:157) at org.neo4j.bolt.v1.runtime.internal.SessionStateMachine.beginImplicitTransaction(SessionStateMachine.java:821) at org.neo4j.bolt.v1.runtime.internal.CypherStatementRunner.run(CypherStatementRunner.java:69) at org.neo4j.bolt.v1.runtime.internal.StandardStateMachineSPI.run(StandardStateMachineSPI.java:110) at org.neo4j.bolt.v1.runtime.internal.SessionStateMachine$State$2.runStatement(SessionStateMachine.java:132) at org.neo4j.bolt.v1.runtime.internal.SessionStateMachine.run(SessionStateMachine.java:725) at org.neo4j.bolt.v1.runtime.internal.concurrent.SessionWorkerFacade.lambda$run$1(SessionWorkerFacade.java:69) at org.neo4j.bolt.v1.runtime.internal.concurrent.SessionWorker.execute(SessionWorker.java:116) at org.neo4j.bolt.v1.runtime.internal.concurrent.SessionWorker.run(SessionWorker.java:77) at java.lang.Thread.run(Thread.java:745) Caused by: org.neo4j.kernel.api.exceptions.TransactionFailureException: Database has encountered some problem, please perform necessary action (tx recovery/restart) at sun.reflect.GeneratedConstructorAccessor43.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at org.neo4j.kernel.internal.DatabaseHealth.assertHealthy(DatabaseHealth.java:62) at org.neo4j.kernel.impl.api.Kernel.newTransaction(Kernel.java:87) at org.neo4j.kernel.impl.factory.ClassicCoreSPI.beginTransaction(ClassicCoreSPI.java:173) … 12 more Caused by: org.apache.lucene.store.AlreadyClosedException: this IndexWriter is closed at org.apache.lucene.index.IndexWriter.ensureOpen(IndexWriter.java:720) at org.apache.lucene.index.IndexWriter.ensureOpen(IndexWriter.java:734) at org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:1473) at org.neo4j.kernel.api.impl.schema.writer.PartitionedIndexWriter.updateDocument(PartitionedIndexWriter.java:72) at org.neo4j.kernel.api.impl.schema.LuceneIndexAccessor$LuceneIndexUpdater.change(LuceneIndexAccessor.java:180) at org.neo4j.kernel.api.impl.schema.LuceneIndexAccessor$LuceneIndexUpdater.process(LuceneIndexAccessor.java:141) at org.neo4j.kernel.impl.api.index.updater.UpdateCountingIndexUpdater.process(UpdateCountingIndexUpdater.java:48) at org.neo4j.kernel.impl.api.index.updater.DelegatingIndexUpdater.process(DelegatingIndexUpdater.java:41) at org.neo4j.kernel.impl.api.index.IndexingService.processUpdate(IndexingService.java:482) at org.neo4j.kernel.impl.api.index.IndexingService.apply(IndexingService.java:453) at org.neo4j.kernel.impl.api.index.IndexingService.apply(IndexingService.java:408) at org.neo4j.kernel.impl.transaction.command.IndexUpdatesWork.apply(IndexUpdatesWork.java:63) at org.neo4j.kernel.impl.transaction.command.IndexUpdatesWork.apply(IndexUpdatesWork.java:42) at org.neo4j.concurrent.WorkSync.doSynchronizedWork(WorkSync.java:121) at org.neo4j.concurrent.WorkSync.apply(WorkSync.java:90) at org.neo4j.kernel.impl.transaction.command.IndexBatchTransactionApplier.applyIndexUpdates(IndexBatchTransactionApplier.java:92) at org.neo4j.kernel.impl.transaction.command.IndexBatchTransactionApplier.close(IndexBatchTransactionApplier.java:109) at org.neo4j.kernel.impl.api.BatchTransactionApplierFacade.close(BatchTransactionApplierFacade.java:70) at org.neo4j.kernel.impl.storageengine.impl.recordstorage.RecordStorageEngine.apply(RecordStorageEngine.java:346) at org.neo4j.kernel.impl.api.TransactionRepresentationCommitProcess.applyToStore(TransactionRepresentationCommitProcess.java:78) at org.neo4j.kernel.impl.api.TransactionRepresentationCommitProcess.commit(TransactionRepresentationCommitProcess.java:51) at org.neo4j.kernel.impl.api.KernelTransactionImplementation.commit(KernelTransactionImplementation.java:549) at org.neo4j.kernel.impl.api.KernelTransactionImplementation.close(KernelTransactionImplementation.java:434) at org.neo4j.bolt.v1.runtime.internal.SessionStateMachine$State$3.commitTransaction(SessionStateMachine.java:197) at org.neo4j.bolt.v1.runtime.internal.SessionStateMachine$State$4.discardAll(SessionStateMachine.java:268) at org.neo4j.bolt.v1.runtime.internal.SessionStateMachine$State$4.pullAll(SessionStateMachine.java:247) at org.neo4j.bolt.v1.runtime.internal.SessionStateMachine.pullAll(SessionStateMachine.java:736) at org.neo4j.bolt.v1.runtime.internal.concurrent.SessionWorkerFacade.lambda$pullAll$2(SessionWorkerFacade.java:75) at org.neo4j.bolt.v1.runtime.internal.concurrent.SessionWorker.execute(SessionWorker.java:116) at org.neo4j.bolt.v1.runtime.internal.concurrent.SessionWorker.executeBatch(SessionWorker.java:102) at org.neo4j.bolt.v1.runtime.internal.concurrent.SessionWorker.run(SessionWorker.java:82) … 1 more Suppressed: org.apache.lucene.store.AlreadyClosedException: this IndexWriter is closed at org.apache.lucene.index.IndexWriter.ensureOpen(IndexWriter.java:720) at org.apache.lucene.index.IndexWriter.ensureOpen(IndexWriter.java:734) at org.apache.lucene.index.IndexWriter.nrtIsCurrent(IndexWriter.java:4591) at org.apache.lucene.index.StandardDirectoryReader.doOpenFromWriter(StandardDirectoryReader.java:282) at org.apache.lucene.index.StandardDirectoryReader.doOpenIfChanged(StandardDirectoryReader.java:261) at org.apache.lucene.index.StandardDirectoryReader.doOpenIfChanged(StandardDirectoryReader.java:251) at org.apache.lucene.index.DirectoryReader.openIfChanged(DirectoryReader.java:137) at org.apache.lucene.search.SearcherManager.refreshIfNeeded(SearcherManager.java:154) at org.apache.lucene.search.SearcherManager.refreshIfNeeded(SearcherManager.java:58) at org.apache.lucene.search.ReferenceManager.doMaybeRefresh(ReferenceManager.java:176) at org.apache.lucene.search.ReferenceManager.maybeRefreshBlocking(ReferenceManager.java:253) at org.neo4j.kernel.api.impl.index.partition.IndexPartition.maybeRefreshBlocking(IndexPartition.java:87) at org.neo4j.kernel.api.impl.index.AbstractLuceneIndex.maybeRefreshPartition(AbstractLuceneIndex.java:334) at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184) at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948) at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) at java.util.stream.ForEachOps$ForEachTask.compute(ForEachOps.java:291) at java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:731) at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) at java.util.concurrent.ForkJoinTask.doInvoke(ForkJoinTask.java:401) at java.util.concurrent.ForkJoinTask.invoke(ForkJoinTask.java:734) at java.util.stream.ForEachOps$ForEachOp.evaluateParallel(ForEachOps.java:160) at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateParallel(ForEachOps.java:174) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:233) at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418) at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:583) at org.neo4j.kernel.api.impl.index.AbstractLuceneIndex.maybeRefreshBlocking(AbstractLuceneIndex.java:318) at org.neo4j.kernel.api.impl.schema.LuceneIndexAccessor$LuceneIndexUpdater.close(LuceneIndexAccessor.java:154) at org.neo4j.kernel.impl.api.index.updater.UpdateCountingIndexUpdater.close(UpdateCountingIndexUpdater.java:55) at org.neo4j.kernel.impl.api.index.ContractCheckingIndexProxy$1.close(ContractCheckingIndexProxy.java:104) at org.neo4j.kernel.impl.api.index.IndexUpdaterMap.close(IndexUpdaterMap.java:84) at org.neo4j.kernel.impl.api.index.IndexingService.apply(IndexingService.java:472) … 22 more Caused by: java.lang.IllegalArgumentException: invalid codec filename ‘-zik0zk_Lucene54_0.dvm’, must match: [a-z0-9]+(.)?.. at org.apache.lucene.index.SegmentInfo.checkFileNames(SegmentInfo.java:280) at org.apache.lucene.index.SegmentInfo.addFiles(SegmentInfo.java:262) at org.apache.lucene.index.SegmentInfo.setFiles(SegmentInfo.java:256) at org.apache.lucene.index.IndexWriter.mergeMiddle(IndexWriter.java:4080) at org.apache.lucene.index.IndexWriter.merge(IndexWriter.java:3655) at org.apache.lucene.index.ConcurrentMergeScheduler.doMerge(ConcurrentMergeScheduler.java:588) at org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:626) [CIRCULAR REFERENCE:java.lang.IllegalArgumentException: invalid codec filename '-zik0zk_Lucene54_0.dvm’, must match: [a-z0-9]+(.)?..]

‘’’

1 回复

这少见,你得去 github上提交issue

回到顶部