Fórum

Cannot forcefully unlock a NativeFSLock which is held by another indexer

Rahul Bhardwaj, modificado 9 Anos atrás.

Cannot forcefully unlock a NativeFSLock which is held by another indexer

New Member Postagens: 9 Data de Entrada: 11/09/14 Postagens Recentes
Hi,

I have a 2 node Liferay cluster setup in amazon with NFS4 shared filesystem for index replication.
My setup details:
Liferay-6.2.0-ga2, Jboss AS-7.1.1,
NFs4 server as shared index directory.

Problem - When my first liferay node in the cluster starts it creates a write.lock file in the shared index path. As a result when my second liferay instance start it throws this error during startup:


08:28:09,871 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) 08:28:09,864 ERROR [liferay/search_writer/SYSTEM_ENGINE-1][IndexAccessorImpl:257] Check Lucenedirectory failed for 0
08:28:09,874 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) org.apache.lucene.store.LockReleaseFailedException: Cannot forcefully unlock a NativeFSLock which is held by another indexer component: /mnt/index/0/write.lock

08:28:09,878 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at org.apache.lucene.store.NativeFSLock.release(NativeFSLockFactory.java:294)
08:28:09,885 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at org.apache.lucene.index.IndexWriter.unlock(IndexWriter.java:4654)
08:28:09,897 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at com.liferay.portal.search.lucene.IndexAccessorImpl._checkLuceneDir
(IndexAccessorImpl.java:253)
08:28:09,900 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at com.liferay.portal.search.lucene.IndexAccessorImpl.<init>(IndexAccessorImpl.java:77)
08:28:09,903 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at com.liferay.portal.search.lucene.LuceneHelperImpl.getIndexAccessor

(LuceneHelperImpl.java:383)
08:28:09,905 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at com.liferay.portal.search.lucene.LuceneHelperImpl.updateDocument(LuceneHelperImpl.java:735)
08:28:09,908 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at com.liferay.portal.search.lucene.LuceneHelperUtil.updateDocument(LuceneHelperUtil.java:406)
08:28:09,911 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at com.liferay.portal.search.lucene.LuceneIndexWriter.updateDocument

(LuceneIndexWriter.java:118)
08:28:09,915 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
08:28:09,921 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
08:28:09,924 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
08:28:09,926 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at java.lang.reflect.Method.invoke(Method.java:606)
08:28:09,931 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at com.liferay.portal.kernel.messaging.proxy.ProxyRequest.execute(ProxyRequest.java:85)
08:28:09,935 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at com.liferay.portal.kernel.messaging.proxy.ProxyMessageListener.receive

(ProxyMessageListener.java:51)
08:28:09,941 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive

(InvokerMessageListener.java:72)
08:28:09,945 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:69)
08:28:09,947 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask

(ThreadPoolExecutor.java:682)
08:28:09,959 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run

(ThreadPoolExecutor.java:593)
08:28:09,961 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at java.lang.Thread.run(Thread.java:745)
08:28:10,024 INFO [stdout] (MSC service thread 1-3) Loading vfs:/root/liferay-test/liferay-portal-6.2.0-ce-ga1/jboss-7.1.1/standalone/deployments/marketplace-

portlet.war/WEB-INF/classes/portlet.properties
08:28:10,035 INFO [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/marketplace-portlet]] (MSC service thread 1-3) Initializing Spring root
WebApplicationContext
08:28:10,049 INFO [stdout] (MSC service thread 1-3) Loading vfs:/root/liferay-test/liferay-portal-6.2.0-ce-ga1/jboss-7.1.1/standalone/deployments/marketplace-
portlet.war/WEB-INF/classes/service.properties
08:28:10,295 INFO [stdout] (MSC service thread 1-3) Loading vfs:/root/liferay-test/liferay-portal-6.2.0-ce-ga1/jboss-7.1.1/standalone/deployments/marketplace-

portlet.war/WEB-INF/classes/service.properties
08:28:10,364 INFO [stdout] (MSC service thread 1-3) 08:28:10,363 INFO [MSC service thread 1-3][HookHotDeployListener:687] Registering hook for marketplace-portlet
08:28:10,378 INFO [stdout] (MSC service thread 1-3) Loading vfs:/root/liferay-test/liferay-portal-6.2.0-ce-ga1/jboss-7.1.1/standalone/deployments/marketplace-

portlet.war/WEB-INF/classes/portal.properties
08:28:10,536 INFO [stdout] (MSC service thread 1-3) 08:28:10,536 INFO [MSC service thread 1-3][HookHotDeployListener:814] Hook for marketplace-portlet is available for use
08:28:10,551 INFO [stdout] (MSC service thread 1-3) 08:28:10,551 INFO [MSC service thread 1-3][PortletHotDeployListener:343] Registering portlets for marketplace-portlet
08:28:10,714 INFO [stdout] (MSC service thread 1-3) Loading vfs:/root/liferay-test/liferay-portal-6.2.0-ce-ga1/jboss-7.1.1/standalone/deployments/marketplace-portlet.war/WEB-INF/classes/portlet.properties
08:28:10,755 INFO [stdout] (MSC service thread 1-3) 08:28:10,754 INFO [MSC service thread 1-3][PortletHotDeployListener:495] 3 portlets for marketplace-portlet are available for use
08:28:10,824 INFO [stdout] (MSC service thread 1-3) 08:28:10,823 INFO [MSC service thread 1-3][HotDeployEvent:130] Plugin KubooPortal-1.0 requires marketplace-portlet
08:28:10,836 INFO [stdout] (MSC service thread 1-3) 08:28:10,836 INFO [MSC service thread 1-3][HotDeployImpl:195] Deploying KubooPortal-1.0 from queue
08:28:10,845 INFO [stdout] (MSC service thread 1-3) 08:28:10,845 INFO [MSC service thread 1-3][PluginPackageUtil:1016] Reading plugin package for KubooPortal-1.0
08:28:10,857 INFO [stdout] (MSC service thread 1-3) 08:28:10,857 WARN [MSC service thread 1-3][PluginPackageUtil:1114] Plugin package on context KubooPortal-1.0

cannot be tracked because this WAR does not contain a liferay-plugin-package.xml file
08:28:11,041 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) 08:28:11,041 ERROR [liferay/search_writer/SYSTEM_ENGINE-1][IndexAccessorImpl:464] Initializing Lucene writer failed for 0
08:28:11,042 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out:
NativeFSLock@/mnt/index/0/write.lock
08:28:11,042 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at org.apache.lucene.store.Lock.obtain(Lock.java:84)
08:28:11,043 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:1108)
08:28:11,048 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at com.liferay.portal.search.lucene.IndexAccessorImpl._initIndexWriter

(IndexAccessorImpl.java:450)
08:28:11,057 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at com.liferay.portal.search.lucene.IndexAccessorImpl.<init>(IndexAccessorImpl.java:78)
08:28:11,064 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at com.liferay.portal.search.lucene.LuceneHelperImpl.getIndexAccessor

(LuceneHelperImpl.java:383)
08:28:11,069 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at com.liferay.portal.search.lucene.LuceneHelperImpl.updateDocument(LuceneHelperImpl.java:735)
08:28:11,079 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at com.liferay.portal.search.lucene.LuceneHelperUtil.updateDocument(LuceneHelperUtil.java:406)
08:28:11,082 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at com.liferay.portal.search.lucene.LuceneIndexWriter.updateDocument

(LuceneIndexWriter.java:118)
08:28:11,088 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
08:28:11,091 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
08:28:11,093 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
08:28:11,103 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at java.lang.reflect.Method.invoke(Method.java:606)
08:28:11,106 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at com.liferay.portal.kernel.messaging.proxy.ProxyRequest.execute(ProxyRequest.java:85)
08:28:11,108 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at com.liferay.portal.kernel.messaging.proxy.ProxyMessageListener.receive

(ProxyMessageListener.java:51)
08:28:11,114 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive

(InvokerMessageListener.java:72)
08:28:11,121 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:69)
08:28:11,125 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask

(ThreadPoolExecutor.java:682)
08:28:11,129 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run

(ThreadPoolExecutor.java:593)
08:28:11,140 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at java.lang.Thread.run(Thread.java:745)
08:28:11,145 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) 08:28:11,145 ERROR [liferay/search_writer/SYSTEM_ENGINE-1][LuceneHelperImpl:407] Unable to load

index for company 0
08:28:11,153 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) java.lang.NullPointerException
08:28:11,156 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at com.liferay.portal.search.lucene.dump.DumpIndexDeletionPolicy.getLastGeneration

(DumpIndexDeletionPolicy.java:66)
08:28:11,171 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at com.liferay.portal.search.lucene.IndexAccessorImpl.getLastGeneration

(IndexAccessorImpl.java:159)
08:28:11,176 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at com.liferay.portal.search.lucene.SynchronizedIndexAccessorImpl.getLastGeneration

(SynchronizedIndexAccessorImpl.java:125)
08:28:11,185 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at com.liferay.portal.search.lucene.LuceneHelperImpl.getIndexAccessor

(LuceneHelperImpl.java:404)
08:28:11,194 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at com.liferay.portal.search.lucene.LuceneHelperImpl.updateDocument(LuceneHelperImpl.java:735)
08:28:11,204 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at com.liferay.portal.search.lucene.LuceneHelperUtil.updateDocument(LuceneHelperUtil.java:406)
08:28:11,208 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at com.liferay.portal.search.lucene.LuceneIndexWriter.updateDocument

(LuceneIndexWriter.java:118)
08:28:11,213 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
08:28:11,221 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
08:28:11,225 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
08:28:11,230 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at java.lang.reflect.Method.invoke(Method.java:606)
08:28:11,234 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at com.liferay.portal.kernel.messaging.proxy.ProxyRequest.execute(ProxyRequest.java:85)
08:28:11,243 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at com.liferay.portal.kernel.messaging.proxy.ProxyMessageListener.receive

(ProxyMessageListener.java:51)
08:28:11,247 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive

(InvokerMessageListener.java:72)
08:28:11,251 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:69)
08:28:11,255 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask

(ThreadPoolExecutor.java:682)
08:28:11,266 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run

(ThreadPoolExecutor.java:593)
08:28:11,268 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at java.lang.Thread.run(Thread.java:745)
08:28:11,273 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-2) 08:28:11,271 WARN [liferay/search_writer/SYSTEM_ENGINE-2][ProxyMessageListener:81]

java.lang.NullPointerException
08:28:11,273 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-2) java.lang.NullPointerException
08:28:11,273 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-2) at com.liferay.portal.search.lucene.IndexAccessorImpl._write(IndexAccessorImpl.java:472)
08:28:11,274 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-2) at com.liferay.portal.search.lucene.IndexAccessorImpl.updateDocument

(IndexAccessorImpl.java:241)
08:28:11,274 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-2) at com.liferay.portal.search.lucene.SynchronizedIndexAccessorImpl.updateDocument

(SynchronizedIndexAccessorImpl.java:152)
08:28:11,275 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-2) at com.liferay.portal.search.lucene.LuceneHelperImpl.updateDocument(LuceneHelperImpl.java:737)
08:28:11,276 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-2) at com.liferay.portal.search.lucene.LuceneHelperUtil.updateDocument(LuceneHelperUtil.java:406)
08:28:11,276 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-2) at com.liferay.portal.search.lucene.LuceneIndexWriter.updateDocument

(LuceneIndexWriter.java:118)
08:28:11,277 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-2) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
08:28:11,277 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-2) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
08:28:11,278 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-2) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
08:28:11,283 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-2) at java.lang.reflect.Method.invoke(Method.java:606)
08:28:11,285 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-2) at com.liferay.portal.kernel.messaging.proxy.ProxyRequest.execute(ProxyRequest.java:85)
08:28:11,287 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-2) at com.liferay.portal.kernel.messaging.proxy.ProxyMessageListener.receive

(ProxyMessageListener.java:51)
08:28:11,297 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-2) at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive

(InvokerMessageListener.java:72)
08:28:11,302 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-2) at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:69)
08:28:11,305 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-2) at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask

(ThreadPoolExecutor.java:682)
08:28:11,306 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-2) at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run

(ThreadPoolExecutor.java:593)
08:28:11,310 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-2) at java.lang.Thread.run(Thread.java:745)
08:28:11,314 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) 08:28:11,279 WARN [liferay/search_writer/SYSTEM_ENGINE-1][ProxyMessageListener:81]

java.lang.NullPointerException
08:28:11,315 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) java.lang.NullPointerException
08:28:11,315 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at com.liferay.portal.search.lucene.IndexAccessorImpl._write(IndexAccessorImpl.java:472)
08:28:11,316 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at com.liferay.portal.search.lucene.IndexAccessorImpl.updateDocument

(IndexAccessorImpl.java:241)
08:28:11,316 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at com.liferay.portal.search.lucene.SynchronizedIndexAccessorImpl.updateDocument

(SynchronizedIndexAccessorImpl.java:152)
08:28:11,317 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at com.liferay.portal.search.lucene.LuceneHelperImpl.updateDocument(LuceneHelperImpl.java:737)
08:28:11,317 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at com.liferay.portal.search.lucene.LuceneHelperUtil.updateDocument(LuceneHelperUtil.java:406)
08:28:11,318 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at com.liferay.portal.search.lucene.LuceneIndexWriter.updateDocument

(LuceneIndexWriter.java:118)
08:28:11,318 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
08:28:11,319 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
08:28:11,319 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
08:28:11,320 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at java.lang.reflect.Method.invoke(Method.java:606)
08:28:11,329 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at com.liferay.portal.kernel.messaging.proxy.ProxyRequest.execute(ProxyRequest.java:85)
08:28:11,332 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at com.liferay.portal.kernel.messaging.proxy.ProxyMessageListener.receive

(ProxyMessageListener.java:51)
08:28:11,336 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive

(InvokerMessageListener.java:72)
08:28:11,338 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:69)
08:28:11,340 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask

(ThreadPoolExecutor.java:682)
08:28:11,349 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run

(ThreadPoolExecutor.java:593)
08:28:11,350 INFO [stdout] (liferay/search_writer/SYSTEM_ENGINE-1) at java.lang.Thread.run(Thread.java:745)





And these are the errors on the same instance (second) when it is shutdown:


INFO [stdout] 07:44:24,492 WARN [liferay/search_writer/SYSTEM_ENGINE-2][ProxyMessageListener:81] java.lang.NullPointerException
07:44:24,492 INFO [stdout] java.lang.NullPointerException
07:44:24,493 INFO [stdout] at com.liferay.portal.search.lucene.IndexAccessorImpl.deleteDocuments(IndexAccessorImpl.java:138)
07:44:24,493 INFO [stdout] at com.liferay.portal.search.lucene.SynchronizedIndexAccessorImpl.deleteDocuments(SynchronizedIndexAccessorImpl.java:99)
07:44:24,493 INFO [stdout] at com.liferay.portal.search.lucene.LuceneHelperImpl.deleteDocuments(LuceneHelperImpl.java:339)
07:44:24,494 INFO [stdout] at com.liferay.portal.search.lucene.LuceneHelperUtil.deleteDocuments(LuceneHelperUtil.java:301)
07:44:24,494 INFO [stdout] at com.liferay.portal.search.lucene.LuceneIndexWriter.deleteDocument(LuceneIndexWriter.java:76)
07:44:24,494 INFO [stdout] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
07:44:24,495 INFO [stdout] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
07:44:24,495 INFO [stdout] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
07:44:24,495 INFO [stdout] at java.lang.reflect.Method.invoke(Method.java:606)
07:44:24,495 INFO [stdout] at com.liferay.portal.kernel.messaging.proxy.ProxyRequest.execute(ProxyRequest.java:85)
07:44:24,496 INFO [stdout] at com.liferay.portal.kernel.messaging.proxy.ProxyMessageListener.receive(ProxyMessageListener.java:51)
07:44:24,496 INFO [stdout] at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:72)
07:44:24,496 INFO [stdout] at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:69)
07:44:24,497 INFO [stdout] at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:682)
07:44:24,497 INFO [stdout] at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:593)
07:44:24,498 INFO [stdout] at java.lang.Thread.run(Thread.java:745)




07:44:24,616 INFO [stdout] 07:44:24,615 ERROR [MSC service thread 1-4][IndexAccessorImpl:118] Closing Lucene writer failed for 0
07:44:24,629 INFO [stdout] java.lang.NullPointerException
07:44:24,629 INFO [stdout] at com.liferay.portal.search.lucene.IndexAccessorImpl.close(IndexAccessorImpl.java:115)
07:44:24,630 INFO [stdout] at com.liferay.portal.search.lucene.SynchronizedIndexAccessorImpl.close(SynchronizedIndexAccessorImpl.java:75)
07:44:24,630 INFO [stdout] at com.liferay.portal.search.lucene.LuceneHelperImpl.shutdown(LuceneHelperImpl.java:687)
07:44:24,630 INFO [stdout] at com.liferay.portal.search.lucene.LuceneHelperUtil.shutdown(LuceneHelperUtil.java:391)
07:44:24,631 INFO [stdout] at com.liferay.portal.events.GlobalShutdownAction.run(GlobalShutdownAction.java:142)
07:44:24,631 INFO [stdout] at com.liferay.portal.events.EventsProcessorImpl.processEvent(EventsProcessorImpl.java:108)
07:44:24,632 INFO [stdout] at com.liferay.portal.events.EventsProcessorImpl.process(EventsProcessorImpl.java:59)
07:44:24,632 INFO [stdout] at com.liferay.portal.events.EventsProcessorUtil.process(EventsProcessorUtil.java:32)
07:44:24,632 INFO [stdout] at com.liferay.portal.servlet.MainServlet.processGlobalShutdownEvents(MainServlet.java:1030)
07:44:24,633 INFO [stdout] at com.liferay.portal.servlet.MainServlet.destroy(MainServlet.java:172)
07:44:24,620 INFO [org.jboss.as.server.deployment] JBAS015877: Stopped deployment marketplace-portlet.war in 328ms
07:44:24,633 INFO [stdout] at org.apache.catalina.core.StandardWrapper.unload(StandardWrapper.java:1382)
07:44:24,634 INFO [stdout] at org.apache.catalina.core.StandardWrapper.stop(StandardWrapper.java:1682)
07:44:24,634 INFO [stdout] at org.apache.catalina.core.StandardContext.stop(StandardContext.java:3985)
07:44:24,635 INFO [stdout] at org.jboss.as.web.deployment.WebDeploymentService.stop(WebDeploymentService.java:108)
07:44:24,635 INFO [stdout] at org.jboss.msc.service.ServiceControllerImpl$StopTask.stopService(ServiceControllerImpl.java:1911)
07:44:24,635 INFO [stdout] at org.jboss.msc.service.ServiceControllerImpl$StopTask.run(ServiceControllerImpl.java:1874)
07:44:24,641 INFO [stdout] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
07:44:24,642 INFO [stdout] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
07:44:24,644 INFO [stdout] at java.lang.Thread.run(Thread.java:745)




Does it mean NFS4 is not the correct choice for Lucene store or there is problem with first instance locking the index directory and not allowing second instance to write.

Please suggest what is happening here.


Thanks
Rahul Bhardwaj, modificado 9 Anos atrás.

RE: Cannot forcefully unlock a NativeFSLock which is held by another indexe

New Member Postagens: 9 Data de Entrada: 11/09/14 Postagens Recentes
Can anybody please help here ?

Very much appreciated.


Thanks
Rahul
Venkat Sankar Rao, modificado 9 Anos atrás.

RE: Cannot forcefully unlock a NativeFSLock which is held by another indexe

Junior Member Postagens: 26 Data de Entrada: 27/10/09 Postagens Recentes
Hi Rahul,
I am also facing similar issue. Where were you able to resolve the issue? If yes, please share details.
TIA.
-Venkat.S
Alexander Kiy, modificado 8 Anos atrás.

RE: Cannot forcefully unlock a NativeFSLock which is held by another indexe

New Member Postagens: 3 Data de Entrada: 19/12/12 Postagens Recentes
see https://github.com/elastic/elasticsearch/issues/4619