Hello everybody,
I am using elasticsearch embedded in my web application. I start the node
via ContextListener method contextInitialized and I call node.stop() in
contextDestroyed method of my ServletContextListener implementation.
However, the following message appear in the logs:
checkThreadLocalMapForLeaks
java.lang.IllegalArgumentException: Illegal shift value, must be 0..63
at
org.apache.lucene.util.NumericUtils.longToPrefixCoded(NumericUtils.java:114)
at
org.apache.lucene.analysis.NumericTokenStream$NumericTermAttributeImpl.reflectWith(NumericTokenStream.java:199)
at
org.apache.lucene.util.AttributeSource.reflectAsString(AttributeSource.java:430)
at
org.apache.catalina.loader.WebappClassLoader.checkThreadLocalMapForLeaks(WebappClassLoader.java:2521)
at
org.apache.catalina.loader.WebappClassLoader.clearReferences(WebappClassLoader.java:1996)
at
org.apache.catalina.loader.WebappLoader.stopInternal(WebappLoader.java:662)
at
org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5616)
at
org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1575)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.lang.Thread.run(Unknown Source)
I am using elasticsearch version 1.0.1.
Do you have any idea how I can shutdown ES in a friendly way?
Thank you very much
It seems you are not using a client but a data node?
You can not expect a data node in a web app context with an index works,
because in this case for example, your Tomcat wants to use an index
setting/mapping for an internal leakage check, which is doomed to fail.
Hello everybody,
I am using elasticsearch embedded in my web application. I start the node
via ContextListener method contextInitialized and I call node.stop() in
contextDestroyed method of my ServletContextListener implementation.
However, the following message appear in the logs:
checkThreadLocalMapForLeaks
java.lang.IllegalArgumentException: Illegal shift value, must be 0..63
at
org.apache.lucene.util.NumericUtils.longToPrefixCoded(NumericUtils.java:114)
at
org.apache.lucene.analysis.NumericTokenStream$NumericTermAttributeImpl.reflectWith(NumericTokenStream.java:199)
at
org.apache.lucene.util.AttributeSource.reflectAsString(AttributeSource.java:430)
at
org.apache.catalina.loader.WebappClassLoader.checkThreadLocalMapForLeaks(WebappClassLoader.java:2521)
at
org.apache.catalina.loader.WebappClassLoader.clearReferences(WebappClassLoader.java:1996)
at
org.apache.catalina.loader.WebappLoader.stopInternal(WebappLoader.java:662)
at
org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5616)
at
org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1575)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.lang.Thread.run(Unknown Source)
I am using elasticsearch version 1.0.1.
Do you have any idea how I can shutdown ES in a friendly way?
Thank you very much
I am not sure it can be done with context listeners particularity when shutting down tomcat. I do not believe it will wait for listeners to complete - they are fired asynchronously and tomcat exits without waiting but I am not positive of that. I was going to test it but have not had a chance
I am not sure it can be done with context listeners particularity when
shutting down tomcat. I do not believe it will wait for listeners to
complete - they are fired asynchronously and tomcat exits without waiting
but I am not positive of that. I was going to test it but have not had a
chance
On Tuesday, April 8, 2014 3:40:20 AM UTC+2, AlexR wrote:
I am not sure it can be done with context listeners particularity when
shutting down tomcat. I do not believe it will wait for listeners to
complete - they are fired asynchronously and tomcat exits without waiting
but I am not positive of that. I was going to test it but have not had a
chance
Hi Jörg,
I am using an elasticsearch node embedded in my webapplication. Before my
web app is unloaded from tomcat I am stopping the node. Is there a way to
check that the node was completly stop or even to check if a node was
started programatically ?
Thank you very much.
Doru
On Monday, April 7, 2014 7:26:31 PM UTC+2, Jörg Prante wrote:
It seems you are not using a client but a data node?
You can not expect a data node in a web app context with an index works,
because in this case for example, your Tomcat wants to use an index
setting/mapping for an internal leakage check, which is doomed to fail.
Jörg
On Mon, Apr 7, 2014 at 5:47 PM, Doru Sular <doru....@gmail.com<javascript:>
wrote:
Hello everybody,
I am using elasticsearch embedded in my web application. I start the node
via ContextListener method contextInitialized and I call node.stop() in
contextDestroyed method of my ServletContextListener implementation.
However, the following message appear in the logs:
checkThreadLocalMapForLeaks
java.lang.IllegalArgumentException: Illegal shift value, must be 0..63
at
org.apache.lucene.util.NumericUtils.longToPrefixCoded(NumericUtils.java:114)
at
org.apache.lucene.analysis.NumericTokenStream$NumericTermAttributeImpl.reflectWith(NumericTokenStream.java:199)
at
org.apache.lucene.util.AttributeSource.reflectAsString(AttributeSource.java:430)
at
org.apache.catalina.loader.WebappClassLoader.checkThreadLocalMapForLeaks(WebappClassLoader.java:2521)
at
org.apache.catalina.loader.WebappClassLoader.clearReferences(WebappClassLoader.java:1996)
at
org.apache.catalina.loader.WebappLoader.stopInternal(WebappLoader.java:662)
at
org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5616)
at
org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1575)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.lang.Thread.run(Unknown Source)
I am using elasticsearch version 1.0.1.
Do you have any idea how I can shutdown ES in a friendly way?
Thank you very much
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.