SourceForge.net Logo
Main Overview Wiki Issues Forum Build Fisheye

Welcome, Guest
Guest Settings
Help

Compass Support Forums » Compass » Compass Users

Thread: Failed to rename index

This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 31 - Pages: 3 [ 1 2 3 | Next ] - Last Post: Aug 23, 2011 9:26 PM Last Post By: louisvuittonbox
nch

Posts: 43
Registered: 3/3/08
Failed to rename index
Posted: Jun 17, 2008 12:24 PM
 
  Click to reply to this thread Reply
Hi, there.
I'm having the following exception while trying to reindex (gps) one of my two indexes.
org.compass.core.engine.SearchEngineException: Failed to rename index [/mnt/compass/index/content] to [/mnt/compass/index/content-copy0]

My application uses two org.compass.spring.LocalCompassBean instances to manage these two indexes.
Could they be interfering each other?

This happens from time to time but, once it starts erroring, the only thing left to do seems stopping the app, removing the index and start again. This is consistently happening regardless of operating system and filesystem. Furthermore, I can't find a lock file anywhere.
I'm running Compass 2.0.
Any ideas on what could be causing this exception?

Cheers.
Shay Banon

Posts: 4,028
Registered: 9/6/05
Re: Failed to rename index
Posted: Jun 19, 2008 3:01 AM   in response to: nch in response to: nch
 
  Click to reply to this thread Reply
When you say you have two instances running, what do you mean? Maybe post configuration files?
nch

Posts: 43
Registered: 3/3/08
Re: Failed to rename index
Posted: Jun 19, 2008 5:41 AM   in response to: Shay Banon in response to: Shay Banon
 
  Click to reply to this thread Reply
I'm attaching a Spring configuration file.

Regards.
Shay Banon

Posts: 4,028
Registered: 9/6/05
Re: Failed to rename index
Posted: Jun 19, 2008 11:02 AM   in response to: nch in response to: nch
 
  Click to reply to this thread Reply
Strange, which version of Compass are you using?
nch

Posts: 43
Registered: 3/3/08
Re: Failed to rename index
Posted: Jun 19, 2008 11:28 AM   in response to: Shay Banon in response to: Shay Banon
 
  Click to reply to this thread Reply
I'm running Compass 2.0.0 with Lucene 2.3.1 although I'm about to move to 2.0.1 (from maven repo).
Shay Banon

Posts: 4,028
Registered: 9/6/05
Re: Failed to rename index
Posted: Jun 21, 2008 2:14 PM   in response to: nch in response to: nch
 
  Click to reply to this thread Reply
Strange. Can you try and create a simple test case to reproduce it? Also, I would make sure that you are closing all your Compass transactions.
Paulo Emerique

Posts: 2
Registered: 6/25/08
Re: Failed to rename index
Posted: Jun 25, 2008 11:28 AM   in response to: Shay Banon in response to: Shay Banon
 
  Click to reply to this thread Reply
Attachment compass.cfg.xml (1.4 KB)
Hi, I'm experiencing same error.

We're using grails searchable plugin 0.5 (compass 2.0.0, lucene 2.3.1).

Windows Vista on my notebook.

Thank you


Stack Trace follows:

58497 engine.LuceneSearchEngine RESOURCE CREATE {Weight} [stored/uncompressed,
indexed,omitNorms<alias:Weight>],[stored/uncompressed,indexed,omitNorms<$/Weight
/id:260>],stored/uncompressed,indexed,tokenized<name:149 kg>,[stored/uncompres
sed,indexed,omitNorms<$/uid:Weight#260#>],indexed,tokenized<zzz-all:all-stream>
58503 engine.LuceneSearchEngine RESOURCE CREATE {Weight} [stored/uncompressed,
indexed,omitNorms<alias:Weight>],[stored/uncompressed,indexed,omitNorms<$/Weight
/id:261>],stored/uncompressed,indexed,tokenized<name:150 kg>,[stored/uncompres
sed,indexed,omitNorms<$/uid:Weight#261#>],indexed,tokenized<zzz-all:all-stream>
58509 jdbc.AbstractBatcher about to close ResultSet (open ResultSets: 1, globa
lly: 1)
58512 jdbc.AbstractBatcher about to close PreparedStatement (open PreparedStat
ements: 1, globally: 1)
58517 transaction.JDBCTransaction commit
58520 transaction.JDBCTransaction re-enabling autocommit
58522 transaction.JDBCTransaction committed JDBC Connection
58523 jdbc.ConnectionManager transaction completed on session with on_close co
nnection release mode; be sure to close the session to release JDBC resources!
58526 jdbc.ConnectionManager releasing JDBC connection [ (open PreparedStateme
nts: 0, globally: 0) (open ResultSets: 0, globally: 0)]
58528 jdbc.ConnectionManager transaction completed on session with on_close co
nnection release mode; be sure to close the session to release JDBC resources!
58541 transaction.LocalTransaction Committing local transaction on thread [Com
pass Gps Index] Compass 17413323 Session 23135123
58554 manager.DefaultLuceneSearchEngineIndexManager Global notification to cle
ar cache
58643 manager.DefaultLuceneSearchEngineIndexManager Calling callback second st
ep
58646 manager.DefaultLuceneSearchEngineIndexManager Replace Index Replacing
index [store index sub-indexes [searchingfortype,smok
ingstyle,weight,glasses,state,children,hobieinteresttype,city,religion,physicalt
ype,personalcharacteristic,height,maritalstatus,haircolor,musicstyle,petlevel,ge
nder,skintype,dressingstyle,authuser,profile,eyecolor,religionlevel,childrenleve
l,televisionstyle,sexualpreference,educationlevel,image,uptodatestyle,relationsh
ipagerange,personalitytype,country,moviebookstyle,sign,drinkingstyle,sitediscove
redtype,pet,punctualitytype,hairstyle,language,foodstyle,personalopinion,ascendi
ngtype]] with [store gpsindex sub-indexes [searchingf
ortype,smokingstyle,weight,glasses,state,children,hobieinteresttype,city,religio
n,physicaltype,personalcharacteristic,height,maritalstatus,haircolor,musicstyle,
petlevel,gender,skintype,dressingstyle,authuser,profile,eyecolor,religionlevel,c
hildrenlevel,televisionstyle,sexualpreference,educationlevel,image,uptodatestyle
,relationshipagerange,personalitytype,country,moviebookstyle,sign,drinkingstyle,
sitediscoveredtype,pet,punctualitytype,hairstyle,language,foodstyle,personalopin
ion,ascendingtype]]
2008-06-25 13:18:47.458::WARN: Failed startup of context org.mortbay.jetty.weba
pp.WebAppContext@3a0f10{/comovai2,C:\workspace\comovai3\comovai2/web-app}
org.springframework.beans.factory.access.BootstrapException: Error executing boo
tstraps; nested exception is org.codehaus.groovy.runtime.InvokerInvocationExcept
ion: org.compass.core.engine.SearchEngineException: Failed to rename index [c:/i
ndex/comovai/index/searchingfortype] to [c:\index\comovai\index\searchingfortype
-copy0]
at org.codehaus.groovy.grails.web.context.GrailsContextLoader.createWebA
pplicationContext(GrailsContextLoader.java:66)
at org.springframework.web.context.ContextLoader.initWebApplicationConte
xt(ContextLoader.java:199)
at org.springframework.web.context.ContextLoaderListener.contextInitiali
zed(ContextLoaderListener.java:45)
at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.
java:530)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:135)
at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.jav
a:1218)
at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:
500)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448
)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
40)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:
117)
at org.mortbay.jetty.Server.doStart(Server.java:220)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
40)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:
86)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:946)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756)
at org.codehaus.groovy.runtime.InvokerHelper.invokePojoMethod(InvokerHel
per.java:766)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.
java:754)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(Scrip
tBytecodeAdapter.java:170)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod0(Scrip
tBytecodeAdapter.java:198)
at RunApp_groovy$_run_closure2_closure7.doCall(RunApp_groovy:69)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:
86)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:946)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurre
ntN(ScriptBytecodeAdapter.java:78)
at RunApp_groovy$_run_closure2_closure7.doCall(RunApp_groovy)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:
86)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:946)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756)
at groovy.lang.Closure.call(Closure.java:292)
at groovy.lang.Closure.call(Closure.java:287)
at sun.reflect.GeneratedMethodAccessor73.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:
86)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:946)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756)
at org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHel
per.java:778)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.
java:758)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(Scrip
tBytecodeAdapter.java:170)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeClosure(Scrip
tBytecodeAdapter.java:605)
at Init_groovy$_run_closure6.doCall(Init_groovy:131)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:
86)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:946)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756)
at groovy.lang.Closure.call(Closure.java:292)
at groovy.lang.Script.invokeMethod(Script.java:87)
at groovy.lang.MetaClassImpl.invokeMethodOnGroovyObject(MetaClassImpl.ja
va:947)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:894)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:946)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756)
at groovy.lang.DelegatingMetaClass.invokeMethod(DelegatingMetaClass.java
:142)
at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:79)
at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:94)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurre
ntN(ScriptBytecodeAdapter.java:78)
at RunApp_groovy$_run_closure2.doCall(RunApp_groovy:68)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:
86)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:946)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756)
at groovy.lang.DelegatingMetaClass.invokeMethod(DelegatingMetaClass.java
:142)
at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:79)
at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:94)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurre
ntN(ScriptBytecodeAdapter.java:78)
at RunApp_groovy$_run_closure2.doCall(RunApp_groovy)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:
86)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:946)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756)
at groovy.lang.DelegatingMetaClass.invokeMethod(DelegatingMetaClass.java
:142)
at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:79)
at groovy.lang.Closure.call(Closure.java:292)
at groovy.lang.Script.invokeMethod(Script.java:87)
at groovy.lang.MetaClassImpl.invokeMethodOnGroovyObject(MetaClassImpl.ja
va:947)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:894)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:946)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756)
at groovy.lang.DelegatingMetaClass.invokeMethod(DelegatingMetaClass.java
:142)
at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:79)
at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:94)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurre
ntN(ScriptBytecodeAdapter.java:78)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurre
nt0(ScriptBytecodeAdapter.java:112)
at RunApp_groovy$_run_closure1.doCall(RunApp_groovy:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:
86)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:946)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756)
at groovy.lang.DelegatingMetaClass.invokeMethod(DelegatingMetaClass.java
:142)
at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:79)
at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:94)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurre
ntN(ScriptBytecodeAdapter.java:78)
at RunApp_groovy$_run_closure1.doCall(RunApp_groovy)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:
86)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:946)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756)
at groovy.lang.DelegatingMetaClass.invokeMethod(DelegatingMetaClass.java
:142)
at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:79)
at groovy.lang.Closure.call(Closure.java:292)
at groovy.lang.Closure.call(Closure.java:287)
at groovy.lang.Closure.run(Closure.java:368)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:
86)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:946)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756)
at groovy.lang.DelegatingMetaClass.invokeMethod(DelegatingMetaClass.java
:142)
at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:79)
at org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHel
per.java:778)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.
java:758)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(Scrip
tBytecodeAdapter.java:170)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod0(Scrip
tBytecodeAdapter.java:198)
at gant.Gant.dispatch(Gant.groovy:271)
at gant.Gant.this$2$dispatch(Gant.groovy)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:
86)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:946)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:674)
at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:
86)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756)
at org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHel
per.java:778)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.
java:758)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(Scrip
tBytecodeAdapter.java:170)
at gant.Gant.invokeMethod(Gant.groovy)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:
86)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:946)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurre
ntN(ScriptBytecodeAdapter.java:78)
at gant.Gant.processTargets(Gant.groovy:436)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:
86)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:946)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurre
ntN(ScriptBytecodeAdapter.java:78)
at gant.Gant.processArgs(Gant.groovy:372)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:
86)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:946)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756)
at org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHel
per.java:778)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.
java:758)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(Scrip
tBytecodeAdapter.java:170)
at org.codehaus.groovy.grails.cli.GrailsScriptRunner.callPluginOrGrailsS
cript(GrailsScriptRunner.groovy:251)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:
86)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
at groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java:1105)

at groovy.lang.ExpandoMetaClass.invokeStaticMethod(ExpandoMetaClass.java
:957)
at org.codehaus.groovy.runtime.InvokerHelper.invokeStaticMethod(InvokerH
elper.java:804)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeStaticMethodN
(ScriptBytecodeAdapter.java:215)
at org.codehaus.groovy.grails.cli.GrailsScriptRunner.main(GrailsScriptRu
nner.groovy:121)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.groovy.grails.cli.support.GrailsStarter.rootLoader(Grail
sStarter.java:140)
at org.codehaus.groovy.grails.cli.support.GrailsStarter.main(GrailsStart
er.java:165)
Caused by: org.codehaus.groovy.runtime.InvokerInvocationException: org.compass.c
ore.engine.SearchEngineException: Failed to rename index [c:/index/comovai/index
/searchingfortype] to c:\index\comovai\index\searchingfortype-copy0
at RunApp_groovy$_run_closure2_closure7.doCall(RunApp_groovy:69)
at RunApp_groovy$_run_closure2_closure7.doCall(RunApp_groovy)
at Init_groovy$_run_closure6.doCall(Init_groovy:131)
at RunApp_groovy$_run_closure2.doCall(RunApp_groovy:68)
at RunApp_groovy$_run_closure2.doCall(RunApp_groovy)
at RunApp_groovy$_run_closure1.doCall(RunApp_groovy:60)
at RunApp_groovy$_run_closure1.doCall(RunApp_groovy)
at gant.Gant.dispatch(Gant.groovy:271)
at gant.Gant.this$2$dispatch(Gant.groovy)
at gant.Gant.invokeMethod(Gant.groovy)
at gant.Gant.processTargets(Gant.groovy:436)
at gant.Gant.processArgs(Gant.groovy:372)
Caused by: org.compass.core.engine.SearchEngineException: Failed to rename index
c:/index/comovai/index/searchingfortype to [c:\index\comovai\index\searchingf
ortype-copy0]
at org.compass.core.lucene.engine.store.FSDirectoryStore.beforeCopyFrom(
FSDirectoryStore.java:131)
at org.compass.core.lucene.engine.store.DefaultLuceneSearchEngineStore.c
opyFrom(DefaultLuceneSearchEngineStore.java:588)
at org.compass.core.lucene.engine.store.DefaultLuceneSearchEngineStore.c
opyFrom(DefaultLuceneSearchEngineStore.java:574)
at org.compass.core.lucene.engine.manager.DefaultLuceneSearchEngineIndex
Manager$ReplaceIndexOperationCallback.secondStep(DefaultLuceneSearchEngineIndexM
anager.java:263)
at org.compass.core.lucene.engine.manager.DefaultLuceneSearchEngineIndex
Manager.doOperate(DefaultLuceneSearchEngineIndexManager.java:216)
at org.compass.core.lucene.engine.manager.DefaultLuceneSearchEngineIndex
Manager.doReplaceIndex(DefaultLuceneSearchEngineIndexManager.java:234)
at org.compass.core.lucene.engine.manager.DefaultLuceneSearchEngineIndex
Manager$7.doInTransaction(DefaultLuceneSearchEngineIndexManager.java:226)
at org.compass.core.impl.DefaultCompass$CompassTransactionContext.execut
e(DefaultCompass.java:324)
at org.compass.core.lucene.engine.manager.DefaultLuceneSearchEngineIndex
Manager.replaceIndex(DefaultLuceneSearchEngineIndexManager.java:224)
at org.compass.gps.impl.SingleCompassGps.doIndex(SingleCompassGps.java:1
21)
at org.compass.gps.impl.AbstractCompassGps.index(AbstractCompassGps.java
:164)
at org.compass.gps.impl.AbstractCompassGps.index(AbstractCompassGps.java
:138)
at SearchableGrailsPlugin$_closure3.doCall(SearchableGrailsPlugin.groovy
:249)
64562 optimizer.LuceneSearchEngineOptimizerManager Checking for index optimiza
tion
... 12 more
2008-06-25 13:18:48.197::WARN: Nested in org.springframework.beans.factory.acce
ss.BootstrapException: Error executing bootstraps; nested exception is org.codeh
aus.groovy.runtime.InvokerInvocationException: org.compass.core.engine.SearchEng
ineException: Failed to rename index c:/index/comovai/index/searchingfortype t
o c:\index\comovai\index\searchingfortype-copy0:
org.compass.core.engine.SearchEngineException: Failed to rename index [c:/index/
comovai/index/searchingfortype] to [c:\index\comovai\index\searchingfortype-copy
0]
at org.compass.core.lucene.engine.store.FSDirectoryStore.beforeCopyFrom(
FSDirectoryStore.java:131)
at org.compass.core.lucene.engine.store.DefaultLuceneSearchEngineStore.c
opyFrom(DefaultLuceneSearchEngineStore.java:588)
at org.compass.core.lucene.engine.store.DefaultLuceneSearchEngineStore.c
opyFrom(DefaultLuceneSearchEngineStore.java:574)
at org.compass.core.lucene.engine.manager.DefaultLuceneSearchEngineIndex
Manager$ReplaceIndexOperationCallback.secondStep(DefaultLuceneSearchEngineIndexM
anager.java:263)
at org.compass.core.lucene.engine.manager.DefaultLuceneSearchEngineIndex
Manager.doOperate(DefaultLuceneSearchEngineIndexManager.java:216)
at org.compass.core.lucene.engine.manager.DefaultLuceneSearchEngineIndex
Manager.doReplaceIndex(DefaultLuceneSearchEngineIndexManager.java:234)
at org.compass.core.lucene.engine.manager.DefaultLuceneSearchEngineIndex
Manager$7.doInTransaction(DefaultLuceneSearchEngineIndexManager.java:226)
at org.compass.core.impl.DefaultCompass$CompassTransactionContext.execut
e(DefaultCompass.java:324)
at org.compass.core.lucene.engine.manager.DefaultLuceneSearchEngineIndex
Manager.replaceIndex(DefaultLuceneSearchEngineIndexManager.java:224)
at org.compass.gps.impl.SingleCompassGps.doIndex(SingleCompassGps.java:1
21)
at org.compass.gps.impl.AbstractCompassGps.index(AbstractCompassGps.java
:164)
at org.compass.gps.impl.AbstractCompassGps.index(AbstractCompassGps.java
:138)
at SearchableGrailsPlugin$_closure3.doCall(SearchableGrailsPlugin.groovy
:249)
at RunApp_groovy$_run_closure2_closure7.doCall(RunApp_groovy:69)
at RunApp_groovy$_run_closure2_closure7.doCall(RunApp_groovy)
at Init_groovy$_run_closure6.doCall(Init_groovy:131)
at RunApp_groovy$_run_closure2.doCall(RunApp_groovy:68)
at RunApp_groovy$_run_closure2.doCall(RunApp_groovy)
at RunApp_groovy$_run_closure1.doCall(RunApp_groovy:60)
at RunApp_groovy$_run_closure1.doCall(RunApp_groovy)
at gant.Gant.dispatch(Gant.groovy:271)
at gant.Gant.this$2$dispatch(Gant.groovy)
at gant.Gant.invokeMethod(Gant.groovy)
at gant.Gant.processTargets(Gant.groovy:436)
at gant.Gant.processArgs(Gant.groovy:372)
2008-06-25 13:18:48.373::INFO: Started SelectChannelConnector@0.0.0.0:8080
Server running. Browse to http://localhost:8080/comovai2

Paulo Emerique

Posts: 2
Registered: 6/25/08
Re: Failed to rename index
Posted: Jun 26, 2008 1:47 PM   in response to: nch in response to: nch
 
  Click to reply to this thread Reply
Hi, I just installed fedora9 and the project runs ok. I was having problemas with Windows Vista since first day. Postgre is running fine now.

The indexing process took too much, about 8 hours to generate a 250MB index, for 30 K Users / Profile / Profile Properties, but thats another thred matter.

Thanks and congratulations for such a nice work, Compass.
nch

Posts: 43
Registered: 3/3/08
Re: Failed to rename index
Posted: Jun 27, 2008 4:26 PM   in response to: nch in response to: nch
 
  Click to reply to this thread Reply
Hello.

In my first posting I said "This happens from time to time but, once it starts erroring, the only thing left to do seems stopping the app, removing the index and start again".
I found out this is not true. What happens is that, once it starts throwing this exception, if you keep trying to reindex (8, 14, ... times), it'll finally make it. Then, after successfully reindex, if you try again it'll quite likely make it again and, then, a new cycle starts (8, 14, ... exceptions).
This sounds to me as a locking issue. Is it possible to reconfigure the timeout period for the renaming operation?

Regarding transactions. I think they are all being closed ... or, at least, that's what logs seem to report.

I wrote a test but, for the time being, I wasn't able to reproduce this issue. The test is basically the same application including only relevant functionality, main difference consisting on the complexity of the content types being indexed (in the test, the two OSEM mappings are much simpler).

Any further ideas on how to tackle this issue?
Lots of thanks.
Shay Banon

Posts: 4,028
Registered: 9/6/05
Re: Failed to rename index
Posted: Jun 28, 2008 11:12 AM   in response to: nch in response to: nch
 
  Click to reply to this thread Reply
Currently there is no option to configure the retry timeout on renaming (though Compass does try to perform it several times). If you manage to reproduce this, it would be great so I can check if there is something wrong with locking.

You can open a feature enhancement in Jira to allow for the renaming retry to be configurable.
saffron

Posts: 148
Registered: 1/8/08
Re: Failed to rename index
Posted: Feb 3, 2009 8:31 PM   in response to: Shay Banon in response to: Shay Banon
 
  Click to reply to this thread Reply
I am facing a similar situation.

We upgraded to Compass 2.1.1 and we are seeing the rename issue very frequently.

In our case we use a single compass instance but we do re-build it frequently.
The indexing process is done n sub-indexes at a time (where n is a configurable number), and during the indexing of these n sub-indexes no write operations are allowed only read operations are allowed.
There are other write operations happening for other sub-indexes.

Sometimes the rename doesn't throw an exception and sometimes it does.

I would really appreciate any help on this.
Shay Banon

Posts: 4,028
Registered: 9/6/05
Re: Failed to rename index
Posted: Feb 4, 2009 4:52 PM   in response to: saffron in response to: saffron
 
  Click to reply to this thread Reply
Can you try the nightly of the 2.1 branch? I fixed an issue there that might fix the problem... .
saffron

Posts: 148
Registered: 1/8/08
Re: Failed to rename index
Posted: Feb 4, 2009 6:47 PM   in response to: Shay Banon in response to: Shay Banon
 
  Click to reply to this thread Reply
The compass 2.1 nightly build seems to have failed!

Also how do I download the nightly build? Under http://build.compass-project.org/browse/CMP21-CMP21CI-22/artifact its says no artifacts!

Alternately is it available from maven repository?

Thanks!!

Edited by: saffron on Feb 4, 2009 7:16 PM
Shay Banon

Posts: 4,028
Registered: 9/6/05
Re: Failed to rename index
Posted: Feb 5, 2009 1:19 AM   in response to: saffron in response to: saffron
 
  Click to reply to this thread Reply
I have kicked another nightly build for 2.1, its ok. Here is information on how to download nightly build: http://wiki.compass-project.org/display/CMPKB/Nightly+Builds.
saffron

Posts: 148
Registered: 1/8/08
Re: Failed to rename index
Posted: Feb 5, 2009 1:04 PM   in response to: Shay Banon in response to: Shay Banon
 
  Click to reply to this thread Reply
Thanks Shay!

is this available on maven? as I wont be otherwise able to do the upgrade since our application requires it to be a build artifact and we follow a process there as well so it wont be possible for me manually deploy it to or repository.
Legend
Guru: 2001 + pts
Expert: 501 - 2000 pts
Super-star: 101 - 500 pts
Assistant: 51 - 100 pts
Participant: 0 - 50 pts
Helpful Answer (5 pts)
Correct Answer (10 pts)

Point your RSS reader here for a feed of the latest messages in all forums