Uploaded image for project: 'Zeppelin'
  1. Zeppelin
  2. ZEPPELIN-5357

Lucene writer lock isn't removed, during shutdown

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Reopened
    • Major
    • Resolution: Unresolved
    • 0.9.1, 0.10.0, 0.10.1
    • None
    • Core
    • None

    Description

      During the tests I often see the following stack trace.
      Cause: Jetty does not remove the Lucene writer lock of the old container, during shutdown.

      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)
      

      Attachments

        Activity

          People

            Reamer Philipp Dallig
            Reamer Philipp Dallig
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h 20m
                1h 20m