We're updating the issue view to help you get more done. 

Lucene error

Description

Got this error multiple times today. What might this be caused by?
I am using Zanata Platform 4.3.0.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 2018-01-24 10:48:15,429 ERROR [org.hibernate.search.backend.impl.lucene.LuceneBackendQueueTask] (Hibernate Search sync consumer thread for index org.zanata.model.HTextFlowTarget) HSEARCH000072: Couldn't open the IndexWriter because of previous error: operation skipped, index ouf of sync! 2018-01-24 10:48:15,432 DEBUG [org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl] (default task-11) HHH000420: Closing un-released batch 2018-01-24 10:48:15,446 DEBUG [org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl] (pool-6-thread-7) Skipping aggressive release due to manual disabling 2018-01-24 10:48:15,448 DEBUG [org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl] (pool-6-thread-7) HHH000420: Closing un-released batch 2018-01-24 10:48:15,527 TRACE [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 2) Scanning directory C:\DESoftware\wildfly-10.1.0.Final\standalone\deployments for deployment content changes 2018-01-24 10:48:15,532 TRACE [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 2) Scan complete 2018-01-24 10:48:16,387 WARN [org.zanata.service.impl.TranslationMemoryServiceImpl] (default task-15) Lucene query returned 20 results (out of approx 68). Increasing zanata.tm.max.results might produce more matches. 2018-01-24 10:48:16,403 ERROR [org.zanata.service.impl.TranslationMemoryServiceImpl] (default task-15) Unexpected TextFlowTarget (state NeedReview): HTextFlowTarget{contents=[Type], locale=HLocale(localeId=en), state=NeedReview, comment=null, textFlow=[Type]}. You may need to re-index. 2018-01-24 10:48:16,404 ERROR [org.zanata.service.impl.TranslationMemoryServiceImpl] (default task-15) Unexpected TextFlowTarget (state NeedReview): HTextFlowTarget{contents=[Type], locale=HLocale(localeId=en), state=NeedReview, comment=null, textFlow=[Type]}. You may need to re-index. 2018-01-24 10:48:16,405 ERROR [org.zanata.service.impl.TranslationMemoryServiceImpl] (default task-15) Unexpected TextFlowTarget (state NeedReview): HTextFlowTarget{contents=[Type], locale=HLocale(localeId=en), state=NeedReview, comment=null, textFlow=[Type]}. You may need to re-index. 2018-01-24 10:48:16,405 ERROR [org.zanata.service.impl.TranslationMemoryServiceImpl] (default task-15) Unexpected TextFlowTarget (state NeedReview): HTextFlowTarget{contents=[Data type], locale=HLocale(localeId=en), state=NeedReview, comment=null, textFlow=[Data type]}. You may need to re-index. 2018-01-24 10:48:16,406 ERROR [org.zanata.service.impl.TranslationMemoryServiceImpl] (default task-15) Unexpected TextFlowTarget (state NeedReview): HTextFlowTarget{contents=[Type], locale=HLocale(localeId=en), state=NeedReview, comment=null, textFlow=[Type]}. You may need to re-index. 2018-01-24 10:48:16,406 ERROR [org.zanata.service.impl.TranslationMemoryServiceImpl] (default task-15) Unexpected TextFlowTarget (state NeedReview): HTextFlowTarget{contents=[Type], locale=HLocale(localeId=en), state=NeedReview, comment=null, textFlow=[Type]}. You may need to re-index. 2018-01-24 10:48:16,408 ERROR [org.zanata.service.impl.TranslationMemoryServiceImpl] (default task-15) Unexpected TextFlowTarget (state NeedReview): HTextFlowTarget{contents=[Type], locale=HLocale(localeId=en), state=NeedReview, comment=null, textFlow=[Type]}. You may need to re-index. 2018-01-24 10:48:16,408 ERROR [org.zanata.service.impl.TranslationMemoryServiceImpl] (default task-15) Unexpected TextFlowTarget (state NeedReview): HTextFlowTarget{contents=[Data type], locale=HLocale(localeId=en), state=NeedReview, comment=null, textFlow=[Data type]}. You may need to re-index. 2018-01-24 10:48:16,409 DEBUG [org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl] (default task-10) Skipping aggressive release due to manual disabling 2018-01-24 10:48:16,414 ERROR [org.hibernate.search.exception.impl.LogErrorHandler] (Hibernate Search sync consumer thread for index org.zanata.model.HTextFlowTarget) HSEARCH000058: Exception occurred org.apache.lucene.store.LockObtainFailedException: Lock held elsewhere: C:\Windows\System32\config\systemprofile\zanata\indexes\org.zanata.model.HTextFlowTarget\write.lock Primary Failure: Entity org.zanata.model.HTextFlowTarget Id 119655 Work Type org.hibernate.search.backend.AddLuceneWork : org.apache.lucene.store.LockObtainFailedException: Lock held elsewhere: C:\Windows\System32\config\systemprofile\zanata\indexes\org.zanata.model.HTextFlowTarget\write.lock at org.apache.lucene.store.SimpleFSLockFactory.obtainFSLock(SimpleFSLockFactory.java:85) [lucene-core-5.3.1.jar:5.3.1 1703449 - noble - 2015-09-17 01:38:09] at org.apache.lucene.store.FSLockFactory.obtainLock(FSLockFactory.java:41) [lucene-core-5.3.1.jar:5.3.1 1703449 - noble - 2015-09-17 01:38:09] at org.apache.lucene.store.BaseDirectory.obtainLock(BaseDirectory.java:45) [lucene-core-5.3.1.jar:5.3.1 1703449 - noble - 2015-09-17 01:38:09] at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:775) [lucene-core-5.3.1.jar:5.3.1 1703449 - noble - 2015-09-17 01:38:09] at org.hibernate.search.backend.impl.lucene.IndexWriterHolder.createNewIndexWriter(IndexWriterHolder.java:123) [hibernate-search-engine-5.5.1.Final.jar:5.5.1.Final] at org.hibernate.search.backend.impl.lucene.IndexWriterHolder.getIndexWriter(IndexWriterHolder.java:89) [hibernate-search-engine-5.5.1.Final.jar:5.5.1.Final] at org.hibernate.search.backend.impl.lucene.AbstractWorkspaceImpl.getIndexWriter(AbstractWorkspaceImpl.java:112) [hibernate-search-engine-5.5.1.Final.jar:5.5.1.Final] at org.hibernate.search.backend.impl.lucene.AbstractWorkspaceImpl.getIndexWriterDelegate(AbstractWorkspaceImpl.java:198) [hibernate-search-engine-5.5.1.Final.jar:5.5.1.Final] at org.hibernate.search.backend.impl.lucene.LuceneBackendQueueTask.applyUpdates(LuceneBackendQueueTask.java:80) [hibernate-search-engine-5.5.1.Final.jar:5.5.1.Final] at org.hibernate.search.backend.impl.lucene.LuceneBackendQueueTask.run(LuceneBackendQueueTask.java:46) [hibernate-search-engine-5.5.1.Final.jar:5.5.1.Final] at org.hibernate.search.backend.impl.lucene.SyncWorkProcessor$Consumer.applyChangesets(SyncWorkProcessor.java:145) [hibernate-search-engine-5.5.1.Final.jar:5.5.1.Final] at org.hibernate.search.backend.impl.lucene.SyncWorkProcessor$Consumer.run(SyncWorkProcessor.java:135) [hibernate-search-engine-5.5.1.Final.jar:5.5.1.Final] at java.lang.Thread.run(Unknown Source) [rt.jar:1.8.0_144] Caused by: java.nio.file.FileAlreadyExistsException: C:\Windows\System32\config\systemprofile\zanata\indexes\org.zanata.model.HTextFlowTarget\write.lock at sun.nio.fs.WindowsException.translateToIOException(Unknown Source) [rt.jar:1.8.0_144] at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source) [rt.jar:1.8.0_144] at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source) [rt.jar:1.8.0_144] at sun.nio.fs.WindowsFileSystemProvider.newByteChannel(Unknown Source) [rt.jar:1.8.0_144] at java.nio.file.Files.newByteChannel(Unknown Source) [rt.jar:1.8.0_144] at java.nio.file.Files.createFile(Unknown Source) [rt.jar:1.8.0_144] at org.apache.lucene.store.SimpleFSLockFactory.obtainFSLock(SimpleFSLockFactory.java:82) [lucene-core-5.3.1.jar:5.3.1 1703449 - noble - 2015-09-17 01:38:09] ... 12 more

Environment

None

Status

Assignee

Unassigned

Reporter

lob

Labels

None

Tested Version/s

None

Fix versions

Affects versions

platform-4.3.0

Priority

unspecified