Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on initializing Lucene index #3699

Closed
vitorenesduarte opened this issue Mar 4, 2015 · 8 comments
Closed

Error on initializing Lucene index #3699

vitorenesduarte opened this issue Mar 4, 2015 · 8 comments
Assignees
Milestone

Comments

@vitorenesduarte
Copy link
Contributor

v2.0.4
Hi,

# create.sql
connect remote:localhost root root
create database remote:localhost/Demo root root plocal
script sql
ALTER DATABASE CUSTOM useLightweightEdges = true
CREATE CLASS User EXTENDS V
CREATE PROPERTY User.username string
ALTER PROPERTY User.username NOTNULL true
CREATE PROPERTY User.name string

CREATE INDEX UserLUCENE ON User (username, name) FULLTEXT ENGINE LUCENE

end
./console create.sql

The script returns:

Server side script executed in 1.078000 sec(s). Value returned is: 0

but the server:

2015-03-04 18:23:35:413 INFO  {db=Demo} Created database 'Demo' of type 'plocal' [ONetworkProtocolBinary]{db=Demo} Error on initializing Lucene index
org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: NativeFSLock@/Users/vitorenes/home/progs/orientdb-community-2.0.4/databases/Demo/luceneIndexes/UserLUCENE/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:287)
    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.core.command.script.OCommandExecutorScript.executeSQLScript(OCommandExecutorScript.java:335)
    at com.orientechnologies.orient.core.command.script.OCommandExecutorScript.executeSQL(OCommandExecutorScript.java:138)
    at com.orientechnologies.orient.core.command.script.OCommandExecutorScript.executeInContext(OCommandExecutorScript.java:82)
    at com.orientechnologies.orient.core.command.script.OCommandExecutorScript.execute(OCommandExecutorScript.java:73)
    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.server.network.protocol.binary.ONetworkProtocolBinary.command(ONetworkProtocolBinary.java:1178)
    at com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.executeRequest(ONetworkProtocolBinary.java:385)
    at com.orientechnologies.orient.server.network.protocol.binary.OBinaryNetworkProtocolAbstract.execute(OBinaryNetworkProtocolAbstract.java:220)
    at com.orientechnologies.common.thread.OSoftThread.run(OSoftThread.java:69)

I think this was working on previous releases, but not entirely sure.
Thanks,

@lvca lvca added the bug label Mar 4, 2015
@lvca
Copy link
Member

lvca commented Mar 4, 2015

Do you have an OrientDB instance up & running?

@vitorenesduarte
Copy link
Contributor Author

Yes. The database is created and the schema too.

@tobiemh
Copy link

tobiemh commented Mar 5, 2015

This existed in v2.0.3 but not in v2.0.2

@jingjingbic
Copy link

I have the same error in our application. We use plocal. 2.0.3

@lvca lvca added this to the 2.1 milestone Mar 5, 2015
@vitorenesduarte
Copy link
Contributor Author

@lvca since this problem was introduced recently, wouldn't be easier to fix it now that later?

@lvca lvca modified the milestones: 2.0.5, 2.1 Mar 5, 2015
@lvca
Copy link
Member

lvca commented Mar 5, 2015

@vitorenesduarte I moved it to 2.0.5. Enrico will work tomorrow on it.

@vitorenesduarte
Copy link
Contributor Author

Thank you @lvca :)

@vitorenesduarte
Copy link
Contributor Author

@lvca @syshex
This seems fixed in 2.0.5.

@lvca lvca closed this as completed Mar 17, 2015
@lvca lvca modified the milestones: 2.0.5, 2.0.6 Mar 17, 2015
@lvca lvca removed the In Progress label Mar 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

5 participants