Philipp Dallig created ZEPPELIN-5357: ----------------------------------------
Summary: Lucene writer lock isn't closed, during shutdown Key: ZEPPELIN-5357 URL: https://issues.apache.org/jira/browse/ZEPPELIN-5357 Project: Zeppelin Issue Type: Bug Components: Core Affects Versions: 0.9.1, 0.10.0 Reporter: Philipp Dallig Assignee: Philipp Dallig During the tests I often see the following stack trace. Cause: Jetty does not close the Lucene writer lock of the old container, during shutdown. {code} 2021-05-05T07:19:35.8362568Z INFO [2021-05-05 07:19:35,835] ({main} LuceneSearch.java[<init>]:93) - Use /tmp/zeppelin-index for storing lucene search index 2021-05-05T07:19:35.8372870Z ERROR [2021-05-05 07:19:35,836] ({main} LuceneSearch.java[<init>]:106) - Failed to create new IndexWriter 2021-05-05T07:19:35.8374803Z org.apache.lucene.store.LockObtainFailedException: Lock held by this virtual machine: /tmp/zeppelin-index/write.lock 2021-05-05T07:19:35.8377265Z at org.apache.lucene.store.NativeFSLockFactory.obtainFSLock(NativeFSLockFactory.java:127) 2021-05-05T07:19:35.8379585Z at org.apache.lucene.store.FSLockFactory.obtainLock(FSLockFactory.java:41) 2021-05-05T07:19:35.8381377Z at org.apache.lucene.store.BaseDirectory.obtainLock(BaseDirectory.java:45) 2021-05-05T07:19:35.8382945Z at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:775) 2021-05-05T07:19:35.8384378Z at org.apache.zeppelin.search.LuceneSearch.<init>(LuceneSearch.java:104) 2021-05-05T07:19:35.8386125Z at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) 2021-05-05T07:19:35.8388337Z at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) 2021-05-05T07:19:35.8390967Z at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) 2021-05-05T07:19:35.8395623Z at java.lang.reflect.Constructor.newInstance(Constructor.java:423) 2021-05-05T07:19:35.8397427Z at org.glassfish.hk2.utilities.reflection.ReflectionHelper.makeMe(ReflectionHelper.java:1356) 2021-05-05T07:19:35.8399275Z at org.jvnet.hk2.internal.ClazzCreator.createMe(ClazzCreator.java:248) 2021-05-05T07:19:35.8400621Z at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:342) 2021-05-05T07:19:35.8402054Z at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:463) {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)