BTW, it looks like this is a known issue slated for fix in 2.0.5: 
https://github.com/orientechnologies/orientdb/issues/3699.

On Monday, March 2, 2015 at 9:49:10 AM UTC-7, Jing Chen wrote:
>
> Hi OrientDB team,
>
> I am getting this error from the console when I try to create Lucene 
> index. I use plocal connection and here is what I got from the console:
>
> orientdb {db=ndex}> create index idx_baseterm_name on baseterm (name) 
> FULLTEXT ENGINE LUCENE;
>
>
> Creating index...{db=ndex} Error on initializing Lucene index
> org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: 
> NativeFSLock@/opt/ndex/orientdb-community-2.0.3/databases/ndex/luceneIndexes/idx_baseterm_name/write.lock
>         at org.apache.lucene.store.Lock.obtain(Lock.java:89)
>         at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:702)
>         at 
> com.orientechnologies.lucene.manager.OLuceneFullTextIndexManager.createIndexWriter(OLuceneFullTextIndexManager.java:57)
>         at 
> com.orientechnologies.lucene.manager.OLuceneIndexManagerAbstract.reOpen(OLuceneIndexManagerAbstract.java:336)
>         at 
> com.orientechnologies.lucene.manager.OLuceneIndexManagerAbstract.initIndex(OLuceneIndexManagerAbstract.java:301)
>         at 
> com.orientechnologies.lucene.manager.OLuceneIndexManagerAbstract.createIndex(OLuceneIndexManagerAbstract.java:91)
>         at 
> com.orientechnologies.lucene.OLuceneIndexEngine.create(OLuceneIndexEngine.java:57)
>         at 
> com.orientechnologies.orient.core.index.OIndexAbstract.rebuild(OIndexAbstract.java:390)
>         at 
> com.orientechnologies.lucene.index.OLuceneIndexNotUnique.rebuild(OLuceneIndexNotUnique.java:178)
>         at 
> com.orientechnologies.orient.core.index.OIndexAbstract.create(OIndexAbstract.java:233)
>         at 
> com.orientechnologies.orient.core.index.OIndexMultiValues.create(OIndexMultiValues.java:284)
>         at 
> com.orientechnologies.lucene.index.OLuceneIndexNotUnique.create(OLuceneIndexNotUnique.java:50)
>         at 
> com.orientechnologies.lucene.index.OLuceneIndexNotUnique.create(OLuceneIndexNotUnique.java:37)
>         at 
> com.orientechnologies.orient.core.index.OIndexManagerShared.createIndex(OIndexManagerShared.java:169)
>         at 
> com.orientechnologies.orient.core.index.OIndexManagerProxy.createIndex(OIndexManagerProxy.java:79)
>         at 
> com.orientechnologies.orient.core.metadata.schema.OClassImpl.createIndex(OClassImpl.java:1434)
>         at 
> com.orientechnologies.orient.core.sql.OCommandExecutorSQLCreateIndex.execute(OCommandExecutorSQLCreateIndex.java:262)
>         at 
> com.orientechnologies.orient.core.sql.OCommandExecutorSQLDelegate.execute(OCommandExecutorSQLDelegate.java:64)
>         at 
> com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.executeCommand(OAbstractPaginatedStorage.java:1184)
>         at 
> com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.command(OAbstractPaginatedStorage.java:1173)
>         at 
> com.orientechnologies.orient.core.command.OCommandRequestTextAbstract.execute(OCommandRequestTextAbstract.java:63)
>         at 
> com.orientechnologies.orient.console.OConsoleDatabaseApp.sqlCommand(OConsoleDatabaseApp.java:2282)
>         at 
> com.orientechnologies.orient.console.OConsoleDatabaseApp.createIndex(OConsoleDatabaseApp.java:863)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:606)
>         at 
> com.orientechnologies.common.console.OConsoleApplication.execute(OConsoleApplication.java:381)
>         at 
> com.orientechnologies.common.console.OConsoleApplication.executeCommands(OConsoleApplication.java:246)
>         at 
> com.orientechnologies.common.console.OConsoleApplication.run(OConsoleApplication.java:135)
>         at 
> com.orientechnologies.orient.graph.console.OGremlinConsole.main(OGremlinConsole.java:62)
>
> The index is still created after this error. Should I worry about this 
> message? My OS is CentOS 6.5
>
> Thanks,
> Jing
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to