-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 8 posts ] 
Author Message
 Post subject: Lucene exceptions during stress tests
PostPosted: Wed Oct 31, 2012 3:49 am 
Newbie

Joined: Wed Oct 31, 2012 3:01 am
Posts: 6
Hi all,

we get exceptions during stress tests from Lucene. The environment is the following:

We have set up a master/slave configuration as described in the documentation. Typically, we test with two glassfish nodes that copy the index from a shared directory. But, the problem occurs also if we use only one slave node that copies the index from the local disc. For testing we use a low refresh period of 20 seconds. If we increase the period to several minutes then the problem does not occur any longer. However, we don't know if we just did not have enough chances to run into the problem. OS: Windows, file handles: default, Hibernate Search 3.1.1, Lucene: 2.4.1. Thanks in advance.

Best regards,

Christoph




com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
Caused by: org.hibernate.search.SearchException: Unable to reopen IndexReader
at
org.hibernate.search.reader.SharingBufferReaderProvider$PerDirectoryLatestReader.refreshAndGet(SharingBufferReaderProvider.java:245)
at
org.hibernate.search.reader.SharingBufferReaderProvider.openReader(SharingBufferReaderProvider.java:123)
at
org.hibernate.search.query.FullTextQueryImpl.buildSearcher(FullTextQueryImpl.java:718)
at org.hibernate.search.query.FullTextQueryImpl.list(FullTextQueryImpl.java:288)
at
com.fujitsu.adm.um.serviceprovisioningservice.bean.SearchServiceBean.searchViaLucene(SearchServiceBean.java:248)
at
com.fujitsu.adm.um.serviceprovisioningservice.bean.SearchServiceBean.searchServices(SearchServiceBean.java:143)
at
com.fujitsu.adm.um.serviceprovisioningservice.bean.SearchServiceInternalBean.searchServices(SearchServiceInternalBean.java:54)
at sun.reflect.GeneratedMethodAccessor1855.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1011)
at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:175)
at com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:4039)
at
com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:483)
at com.sun.ejb.Invocation.proceed(Invocation.java:498)
at
com.fujitsu.adm.um.interceptor.ExceptionMapper.mapEJBExceptions(ExceptionMapper.java:38)
at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:579)
at
com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:483)
at com.sun.ejb.Invocation.proceed(Invocation.java:498)
at
com.fujitsu.adm.um.interceptor.InvocationDateContainer.initializeDate(InvocationDateContainer.java:39)
at sun.reflect.GeneratedMethodAccessor143.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:579)
at
com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:483)
at
com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:205)
at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:4012)
at
com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:203)
... 112 more
Caused by: java.io.FileNotFoundException:
C:\glassfishFarm\glassfish\domains\bes\slaveIndexBase\com.fujitsu.adm.um.domobjects.Product\2\segments_1tr
(The system cannot find the file specified)
at java.io.RandomAccessFile.open(Native Method)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212)
at
org.apache.lucene.store.FSDirectory$FSIndexInput$Descriptor.<init>(FSDirectory.java:552)
at org.apache.lucene.store.FSDirectory$FSIndexInput.<init>(FSDirectory.java:582)
at org.apache.lucene.store.FSDirectory.openInput(FSDirectory.java:488)
at org.apache.lucene.store.FSDirectory.openInput(FSDirectory.java:482)
at org.apache.lucene.index.SegmentInfos$2.doBody(SegmentInfos.java:369)
at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:653)
at org.apache.lucene.index.SegmentInfos.readCurrentVersion(SegmentInfos.java:366)
at
org.apache.lucene.index.DirectoryIndexReader.isCurrent(DirectoryIndexReader.java:237)
at
org.apache.lucene.index.DirectoryIndexReader.reopen(DirectoryIndexReader.java:145)
at
org.hibernate.search.reader.SharingBufferReaderProvider$PerDirectoryLatestReader.refreshAndGet(SharingBufferReaderProvider.java:242)
... 142 more


Top
 Profile  
 
 Post subject: Re: Lucene exceptions during stress tests
PostPosted: Wed Oct 31, 2012 8:25 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Hi Christoph,
Both Search 3.1.1 and Lucene 2.4 are rather old, and from that time we fixed several issues in the area. I believe the problem you're having is that the SharingBufferReaderProvider should not be used with the switching directories: it might be "sharing a buffer" with the wrong Directory instance. If you can't upgrade to latest, I'd advise to try using the not-shared Reader strategy : http://docs.jboss.org/hibernate/search/3.1/reference/en/html_single/#d0e669

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
 Post subject: Re: Lucene exceptions during stress tests
PostPosted: Thu Nov 01, 2012 8:38 am 
Newbie

Joined: Wed Oct 31, 2012 3:01 am
Posts: 6
Hi Sanne,

thanks for the quick response.

1. Hibernate upgrade
We tried to upgrade Hibernate and Lucene to the next version, but had compile errors in the workspace. For the current version that is about to be released it seems too late. But for the next release we are allready porting the product to later JEE and Hibernate versions.

2. not-shared Reader strategy
We have tried already hibernate.search.reader.strategy = not-shared. But the result was mostly the same.

The documentation mentions that the refresh period should be longer than the copy time. We have not measured the copy time during load test. But the index is only a few KB. We wondered if a too short refresh time could cause this problem.

We test only on Windows, because this is the given production environment. Is the master/slave configuration working on other environments e.g. Linux?


Best regards,

Christoph


Top
 Profile  
 
 Post subject: Re: Lucene exceptions during stress tests
PostPosted: Thu Nov 01, 2012 9:17 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Quote:
1. Hibernate upgrade
We tried to upgrade Hibernate and Lucene to the next version, but had compile errors in the workspace. For the current version that is about to be released it seems too late. But for the next release we are allready porting the product to later JEE and Hibernate versions.

Right, we try hard to keep backwards compatibility but we take the liberty to cleanup things in mayor releases; this should be useful:
https://community.jboss.org/wiki/HibernateSearchMigrationGuide

Quote:
The documentation mentions that the refresh period should be longer than the copy time. We have not measured the copy time during load test. But the index is only a few KB. We wondered if a too short refresh time could cause this problem.

A few KB index should take very short to copy so that's unlikely. Could you send a full stack like the one you posted but using the non-shared configuration?
Might be useful also to check the changelogs in JIRA to explore the long list of fixes since your version.

https://hibernate.onjira.com/browse/HSEARCH#selectedTab=com.atlassian.jira.plugin.system.project%3Achangelog-panel

Quote:
We test only on Windows, because this is the given production environment. Is the master/slave configuration working on other environments e.g. Linux?

Yes that should work on Windows too, we have Jenkins machines on several OSs and database combinations (windows included).

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
 Post subject: Re: Lucene exceptions during stress tests
PostPosted: Fri Nov 02, 2012 5:55 am 
Newbie

Joined: Wed Oct 31, 2012 3:01 am
Posts: 6
Ok, thanks for the support. We have not kept the results for the non shared configuration. We have to rerun the tests. I will post more stack traces next week.

Best regards,

Christoph


Top
 Profile  
 
 Post subject: Re: Lucene exceptions during stress tests
PostPosted: Tue Nov 06, 2012 2:32 am 
Newbie

Joined: Wed Oct 31, 2012 3:01 am
Posts: 6
The following stack trace was logged with non-shared reader:




[#|2012-10-31T11:56:07.971+0100|INFO|sun-appserver2.1|javax.enterprise.system.container.ejb|_ThreadID=50;_ThreadName=httpSSLWorkerThread-8080-26;SearchServiceInternalBean;|EJB5018: An exception was thrown during an ejb invocation on [SearchServiceInternalBean]|#]



[#|2012-10-31T11:56:07.971+0100|INFO|sun-appserver2.1|javax.enterprise.system.container.ejb|_ThreadID=50;_ThreadName=httpSSLWorkerThread-8080-26;|

javax.ejb.EJBException

at com.sun.ejb.containers.BaseContainer.processSystemException(BaseContainer.java:3903)

at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:3803)

at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:3605)

at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1388)

at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1325)

at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:210)

at com.sun.ejb.containers.EJBObjectInvocationHandlerDelegate.invoke(EJBObjectInvocationHandlerDelegate.java:117)

at $Proxy85.searchServices(Unknown Source)

at sun.reflect.GeneratedMethodAccessor2063.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)

at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(StubInvocationHandlerImpl.java:233)

at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:152)

at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(BCELStubBase.java:225)

at com.fujitsu.bss.internal.intf.__SearchServiceInternal_Remote_DynamicStub.searchServices(com/fujitsu/bss/internal/intf/__SearchServiceInternal_Remote_DynamicStub.java)

at com.fujitsu.bss.internal.intf._SearchServiceInternal_Wrapper.searchServices(com/fujitsu/bss/internal/intf/_SearchServiceInternal_Wrapper.java)

at com.fujitsu.adm.um.ui.beans.ServiceListingBean.searchWithPhrase(ServiceListingBean.java:284)

at com.fujitsu.adm.um.ui.beans.ServiceListingBean.getServiceList(ServiceListingBean.java:258)

at sun.reflect.GeneratedMethodAccessor1378.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)

at javax.el.BeanELResolver.getValue(BeanELResolver.java:293)

at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:175)

at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)

at com.sun.el.parser.AstValue.getValue(AstValue.java:138)

at com.sun.el.parser.AstFunction.getValue(AstFunction.java:118)

at com.sun.el.parser.AstGreaterThan.getValue(AstGreaterThan.java:54)

at com.sun.el.parser.AstAnd.getValue(AstAnd.java:54)

at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:206)

at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)

at com.sun.facelets.tag.TagAttribute.getObject(TagAttribute.java:233)

at com.sun.facelets.tag.TagAttribute.getBoolean(TagAttribute.java:79)

at com.sun.facelets.tag.jstl.core.IfHandler.apply(IfHandler.java:49)

at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)

at com.sun.facelets.tag.ui.DefineHandler.apply(DefineHandler.java:58)

at com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:128)

at com.sun.facelets.impl.DefaultFaceletContext$TemplateManager.apply(DefaultFaceletContext.java:306)

at com.sun.facelets.impl.DefaultFaceletContext.includeDefinition(DefaultFaceletContext.java:279)

at com.sun.facelets.tag.ui.InsertHandler.apply(InsertHandler.java:68)

at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)

at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)

at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)

at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)

at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)

at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)

at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)

at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)

at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)

at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)

at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)

at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)

at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)

at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)

at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)

at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)

at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)

at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)

at com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:143)

at com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:113)

at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)

at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)

at com.sun.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:95)

at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:503)

at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:546)

at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)

at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)

at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)

at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)

at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)

at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)

at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:333)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)

at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:341)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)

at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)

at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)

at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)

at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)

at com.fujitsu.adm.um.ui.filter.AuthorizationFilter.proceedWithFilterChain(AuthorizationFilter.java:207)

at com.fujitsu.adm.um.ui.filter.AuthorizationFilter.doFilter(AuthorizationFilter.java:123)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)

at com.fujitsu.adm.um.ui.filter.MarketplaceContextFilter.doFilter(MarketplaceContextFilter.java:99)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)

at com.fujitsu.adm.um.ui.filter.HttpMethodFilter.doFilter(HttpMethodFilter.java:57)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:313)

at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)

at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)

at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)

at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)

at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)

at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)

at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)

at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)

at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)

at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)

at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)

at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291)

at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:666)

at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:597)

at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:872)

at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)

at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)

at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)

at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:264)

at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)

Caused by: org.hibernate.search.SearchException: Unable to open one of the Lucene indexes

at org.hibernate.search.reader.NotSharedReaderProvider.openReader(NotSharedReaderProvider.java:31)

at org.hibernate.search.query.FullTextQueryImpl.buildSearcher(FullTextQueryImpl.java:718)

at org.hibernate.search.query.FullTextQueryImpl.list(FullTextQueryImpl.java:288)

at com.fujitsu.adm.um.serviceprovisioningservice.bean.SearchServiceBean.searchViaLucene(SearchServiceBean.java:248)

at com.fujitsu.adm.um.serviceprovisioningservice.bean.SearchServiceBean.searchServices(SearchServiceBean.java:143)

at com.fujitsu.adm.um.serviceprovisioningservice.bean.SearchServiceInternalBean.searchServices(SearchServiceInternalBean.java:54)

at sun.reflect.GeneratedMethodAccessor2064.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)

at com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1011)

at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:175)

at com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:4039)

at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:483)

at com.sun.ejb.Invocation.proceed(Invocation.java:498)

at com.fujitsu.adm.um.interceptor.ExceptionMapper.mapEJBExceptions(ExceptionMapper.java:38)

at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)

at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:579)

at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:483)

at com.sun.ejb.Invocation.proceed(Invocation.java:498)

at com.fujitsu.adm.um.interceptor.InvocationDateContainer.initializeDate(InvocationDateContainer.java:39)

at sun.reflect.GeneratedMethodAccessor143.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)

at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:579)

at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:483)

at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:205)

at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:4012)

at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:203)

... 112 more

Caused by: java.io.FileNotFoundException: C:\glassfishFarm\glassfish\domains\bes\slaveIndexBase\com.fujitsu.adm.um.domobjects.Product\2\segments_2r9 (The system cannot find the file specified)

at java.io.RandomAccessFile.open(Native Method)

at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212)

at org.apache.lucene.store.FSDirectory$FSIndexInput$Descriptor.<init>(FSDirectory.java:552)

at org.apache.lucene.store.FSDirectory$FSIndexInput.<init>(FSDirectory.java:582)

at org.apache.lucene.store.FSDirectory.openInput(FSDirectory.java:488)

at org.apache.lucene.store.FSDirectory.openInput(FSDirectory.java:482)

at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:214)

at org.apache.lucene.index.DirectoryIndexReader$1.doBody(DirectoryIndexReader.java:95)

at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:653)

at org.apache.lucene.index.DirectoryIndexReader.open(DirectoryIndexReader.java:115)

at org.apache.lucene.index.IndexReader.open(IndexReader.java:316)

at org.apache.lucene.index.IndexReader.open(IndexReader.java:237)

at org.hibernate.search.reader.NotSharedReaderProvider.openReader(NotSharedReaderProvider.java:26)

... 141 more

|#]


Top
 Profile  
 
 Post subject: Re: Lucene exceptions during stress tests
PostPosted: Tue Nov 06, 2012 2:40 am 
Newbie

Joined: Wed Oct 31, 2012 3:01 am
Posts: 6
We also get the following error (logged without the non-shared setting):


[#|2012-08-08T13:28:22.205+0800|WARNING|sun-appserver2.1|javax.enterprise.system.stream.err|_ThreadID=42;_ThreadName=pool-6-thread-1;_RequestID=313014ac-d87f-42a3-97f4-27e559051d88;|362842
[pool-6-thread-1] ERROR org.hibernate.search.util.FileHelper - Could not delete
C:\bes_install_sv\glassfish\domains\bes-domain\slaveIndexBase\com.fujitsu.adm.um.domobjects.Product\1\_bvi.cfs|#]

After the test run the file exists, but still cannot be deleted manually. A resource leak?


Top
 Profile  
 
 Post subject: Re: Lucene exceptions during stress tests
PostPosted: Wed Nov 07, 2012 2:43 am 
Newbie

Joined: Wed Oct 31, 2012 3:01 am
Posts: 6
The problem seems to be the same as:

https://hibernate.onjira.com/browse/HSEARCH-395?page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel

However, we get such kind of problems also without NFS, even if we use only a single slave a store the shared index on a local disk.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 8 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.