[ 
http://jira.nuxeo.org/browse/NXP-4078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=60323#action_60323
 ] 

Olivier Grisel commented on NXP-4078:
-------------------------------------

here is the sacktrace when connecting for the first time to a H2 VCS repo after 
a restart (the exception itself is not related to the current issue):

        at org.h2.schema.TriggerObject.load(TriggerObject.java:67)
        at 
org.h2.schema.TriggerObject.setTriggerClassName(TriggerObject.java:83)
        at org.h2.command.ddl.CreateTrigger.update(CreateTrigger.java:94)
        at org.h2.command.CommandContainer.update(CommandContainer.java:72)
        at org.h2.command.Command.executeUpdate(Command.java:208)
        at org.h2.jdbc.JdbcStatement.execute(JdbcStatement.java:158)
        at 
org.nuxeo.ecm.core.storage.sql.db.H2Fulltext.createTrigger(H2Fulltext.java:238)
        at 
org.nuxeo.ecm.core.storage.sql.db.H2Fulltext.createIndex(H2Fulltext.java:173)
        at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at 
org.h2.engine.FunctionAlias$JavaMethod.getValue(FunctionAlias.java:301)
        at org.h2.expression.JavaFunction.getValue(JavaFunction.java:38)
        at org.h2.command.dml.Call.query(Call.java:61)
        at org.h2.command.CommandContainer.query(CommandContainer.java:82)
        at org.h2.command.Command.executeQueryLocal(Command.java:142)
        at org.h2.command.Command.executeQuery(Command.java:123)
        at org.h2.jdbc.JdbcStatement.execute(JdbcStatement.java:154)
        at 
org.nuxeo.ecm.core.storage.sql.Mapper.executeConditionalStatements(Mapper.java:696)
        at org.nuxeo.ecm.core.storage.sql.Mapper.createDatabase(Mapper.java:325)
Caused by: org.nuxeo.ecm.core.api.WrappedException: Exception: 
java.sql.SQLException. message: Error while indexing document
        at 
org.nuxeo.ecm.core.storage.sql.db.H2Fulltext.convertException(H2Fulltext.java:434)
        at 
org.nuxeo.ecm.core.storage.sql.db.H2Fulltext.getIndexWriter(H2Fulltext.java:410)
        at 
org.nuxeo.ecm.core.storage.sql.db.H2Fulltext.access$100(H2Fulltext.java:56)
        at 
org.nuxeo.ecm.core.storage.sql.db.H2Fulltext$Trigger.init(H2Fulltext.java:600)
        at org.h2.schema.TriggerObject.load(TriggerObject.java:65)
        ... 130 more
Caused by: org.nuxeo.ecm.core.api.WrappedException: Exception: 
org.apache.lucene.store.LockObtainFailedException. message: Lock obtain timed 
out: SimpleFSLock@/opt/nuxeo-dam-jetty/vcsh2repo.lucene/write.lock
        at org.apache.lucene.store.Lock.obtain(Lock.java:85)
        at org.apache.lucene.index.IndexWriter.init(IndexWriter.java:692)
        at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:453)
        at 
org.nuxeo.ecm.core.storage.sql.db.H2Fulltext.getIndexWriter(H2Fulltext.java:407)


> fulltext indexed documents with H2 VCS are duplicated upon jboss or jetty 
> restart
> ---------------------------------------------------------------------------------
>
>                 Key: NXP-4078
>                 URL: http://jira.nuxeo.org/browse/NXP-4078
>             Project: Nuxeo Enterprise Platform
>          Issue Type: Bug
>    Affects Versions: 5.3
>            Reporter: Olivier Grisel
>            Assignee: Florent Guillaume
>            Priority: Major
>             Fix For: 5.3
>
>
> Steps to reproduce:
> - deploy nuxeo DM or EP with H2 VCS on either jboss or jetty
> - create some documents
> - search a word in the title of a document using the top right search input 
> => it works as expected
> - restart jboss
> - perform the exact same search as previously: results appear twice with same 
> document ref
> - further restarts keep creating new lucene index entries in the VCS store
> Checking the index directory with luke shows that the entries are indeed 
> duplicated. VCS init should not trigger a lucene indexing of the existing 
> entries.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to