org.apache.lucene.store.LockObtainFailedException: блокировка, удерживаемая этой виртуальной машиной - PullRequest
0 голосов
/ 18 июня 2019

Мы создали новые индексы, когда Кассандра была на каждой таблице в пространстве ключей. Сегодня, когда он собирается перезапустить, появляется следующая ошибка, которая не позволяет Кассандре перезапуститься. может кто-нибудь подсказать в чем именно проблема

INFO  [main] 2019-06-18 04:14:11,415 ColumnFamilyStore.java:411 - Initializing msoft_trade_history.allocations
INFO  [main] 2019-06-18 04:14:11,457 Index.scala:69 - Index msoft_trade_history.allocations.allocations_idx doesn't need (re)building
ERROR [main] 2019-06-18 04:14:11,485 IndexService.scala:102 - Initialization of Lucene FS directory for index 'allocations_idx_new' has failed
org.apache.lucene.store.LockObtainFailedException: Lock held by this virtual machine: /c05/stratio_index1/msoft_trade_history/allocations/write.lock
        at org.apache.lucene.store.NativeFSLockFactory.obtainFSLock(NativeFSLockFactory.java:127) ~[cassandra-lucene-index-plugin-3.11.3.0.jar:na]
        at org.apache.lucene.store.FSLockFactory.obtainLock(FSLockFactory.java:41) ~[cassandra-lucene-index-plugin-3.11.3.0.jar:na]
        at org.apache.lucene.store.BaseDirectory.obtainLock(BaseDirectory.java:45) ~[cassandra-lucene-index-plugin-3.11.3.0.jar:na]
        at org.apache.lucene.store.FilterDirectory.obtainLock(FilterDirectory.java:94) ~[cassandra-lucene-index-plugin-3.11.3.0.jar:na]
        at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:776) ~[cassandra-lucene-index-plugin-3.11.3.0.jar:na]
        at com.stratio.cassandra.lucene.index.FSIndex.init(FSIndex.scala:72) ~[cassandra-lucene-index-plugin-3.11.3.0.jar:na]
        at com.stratio.cassandra.lucene.index.PartitionedIndex.$anonfun$init$1(PartitionedIndex.scala:76) ~[cassandra-lucene-index-plugin-3.11.3.0.jar:na]
        at com.stratio.cassandra.lucene.index.PartitionedIndex.$anonfun$init$1$adapted(PartitionedIndex.scala:76) ~[cassandra-lucene-index-plugin-3.11.3.0.jar:na]
        at scala.collection.immutable.List.foreach(List.scala:378) ~[cassandra-lucene-index-plugin-3.11.3.0.jar:na]
        at com.stratio.cassandra.lucene.index.PartitionedIndex.init(PartitionedIndex.scala:76) ~[cassandra-lucene-index-plugin-3.11.3.0.jar:na]
        at com.stratio.cassandra.lucene.IndexService.init(IndexService.scala:99) ~[cassandra-lucene-index-plugin-3.11.3.0.jar:na]
        at com.stratio.cassandra.lucene.IndexServiceWide.<init>(IndexServiceWide.scala:48) [cassandra-lucene-index-plugin-3.11.3.0.jar:na]
        at com.stratio.cassandra.lucene.IndexService$.build(IndexService.scala:459) [cassandra-lucene-index-plugin-3.11.3.0.jar:na]
        at com.stratio.cassandra.lucene.Index.liftedTree1$1(Index.scala:55) [cassandra-lucene-index-plugin-3.11.3.0.jar:na]
        at com.stratio.cassandra.lucene.Index.<init>(Index.scala:55) [cassandra-lucene-index-plugin-3.11.3.0.jar:na]
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [na:1.8.0_65]
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) [na:1.8.0_65]
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [na:1.8.0_65]
        at java.lang.reflect.Constructor.newInstance(Constructor.java:422) [na:1.8.0_65]
        at org.apache.cassandra.index.SecondaryIndexManager.createInstance(SecondaryIndexManager.java:429) [apache-cassandra-3.11.3.jar:3.11.3]
        at org.apache.cassandra.index.SecondaryIndexManager.createIndex(SecondaryIndexManager.java:167) [apache-cassandra-3.11.3.jar:3.11.3]
        at org.apache.cassandra.index.SecondaryIndexManager.addIndex(SecondaryIndexManager.java:193) [apache-cassandra-3.11.3.jar:3.11.3]
        at org.apache.cassandra.db.ColumnFamilyStore.<init>(ColumnFamilyStore.java:451) [apache-cassandra-3.11.3.jar:3.11.3]
        at org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:623) [apache-cassandra-3.11.3.jar:3.11.3]
        at org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:597) [apache-cassandra-3.11.3.jar:3.11.3]
        at org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:588) [apache-cassandra-3.11.3.jar:3.11.3]
        at org.apache.cassandra.db.Keyspace.initCf(Keyspace.java:417) [apache-cassandra-3.11.3.jar:3.11.3]
        at org.apache.cassandra.db.Keyspace.<init>(Keyspace.java:324) [apache-cassandra-3.11.3.jar:3.11.3]
        at org.apache.cassandra.db.Keyspace.open(Keyspace.java:129) [apache-cassandra-3.11.3.jar:3.11.3]
        at org.apache.cassandra.db.Keyspace.open(Keyspace.java:106) [apache-cassandra-3.11.3.jar:3.11.3]
        at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:292) [apache-cassandra-3.11.3.jar:3.11.3]
        at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:602) [apache-cassandra-3.11.3.jar:3.11.3]
        at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:691) [apache-cassandra-3.11.3.jar:3.11.3]
INFO  [main] 2019-06-18 04:14:11,486 Index.scala:72 - Index msoft_trade_history.allocations.allocations_idx_new needs (re)building
INFO  [main] 2019-06-18 04:14:11,487 Index.scala:72 - Index msoft_trade_history.allocations.allocations_idx_new needs (re)building
ERROR [SecondaryIndexManagement:1] 2019-06-18 04:14:11,494 TaskQueue.scala:110 - Task queue synchronous submission failed
java.lang.NullPointerException: null
        at com.stratio.cassandra.lucene.index.FSIndex.truncate(FSIndex.scala:124) ~[cassandra-lucene-index-plugin-3.11.3.0.jar:na]
        at com.stratio.cassandra.lucene.index.PartitionedIndex.$anonfun$truncate$1(PartitionedIndex.scala:81) ~[cassandra-lucene-index-plugin-3.11.3.0.jar:na]
        at com.stratio.cassandra.lucene.index.PartitionedIndex.$anonfun$truncate$1$adapted(PartitionedIndex.scala:81) ~[cassandra-lucene-index-plugin-3.11.3.0.jar:na                                                                     ]
        at scala.collection.immutable.List.foreach(List.scala:378) ~[cassandra-lucene-index-plugin-3.11.3.0.jar:na]
        at com.stratio.cassandra.lucene.index.PartitionedIndex.truncate(PartitionedIndex.scala:81) ~[cassandra-lucene-index-plugin-3.11.3.0.jar:na]
        at com.stratio.cassandra.lucene.IndexService.$anonfun$truncate$1(IndexService.scala:214) [cassandra-lucene-index-plugin-3.11.3.0.jar:na]
        at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12) ~[cassandra-lucene-index-plugin-3.11.3.0.jar:na]
        at com.stratio.cassandra.lucene.util.TaskQueueAsync.submitSynchronous(TaskQueue.scala:101) ~[cassandra-lucene-index-plugin-3.11.3.0.jar:na]
        at com.stratio.cassandra.lucene.IndexService.truncate(IndexService.scala:214) [cassandra-lucene-index-plugin-3.11.3.0.jar:na]
        at com.stratio.cassandra.lucene.Index.$anonfun$getBuildIndexTask$1(Index.scala:79) [cassandra-lucene-index-plugin-3.11.3.0.jar:na]
        at com.stratio.cassandra.lucene.Index.$anonfun$getBuildIndexTask$1$adapted(Index.scala:77) [cassandra-lucene-index-plugin-3.11.3.0.jar:na]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_65]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[na:1.8.0_65]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[na:1.8.0_65]
        at org.apache.cassandra.concurrent.NamedThreadFactory.lambda$threadLocalDeallocator$0(NamedThreadFactory.java:81) ~[apache-cassandra-3.11.3.jar:3.11.3]
        at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_65]
...