Exception when closing node


(Eric Jain) #1

Since upgrading from 0.19.3 to 0.19.4, I get an exception whenever I
close an (embedded) elasticsearch instance:

client.admin().indices().prepareFlush("_all").execute().actionGet();
client.close();
node.close();

[warn] n.c.DefaultChannelPipeline - An exception was thrown by an
exception handler.
org.elasticsearch.common.netty.channel.ChannelException: Failed to
create a selector.
at
org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.start(AbstractNioWorker.java:
162) ~[elasticsearch-0.19.4.jar:na]
at
org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.executeInIoThread(AbstractNioWorker.java:
314) ~[elasticsearch-0.19.4.jar:na]
at
org.elasticsearch.common.netty.channel.socket.nio.NioWorker.executeInIoThread(NioWorker.java:
38) ~[elasticsearch-0.19.4.jar:na]
at
org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.executeInIoThread(AbstractNioWorker.java:
298) ~[elasticsearch-0.19.4.jar:na]
at
org.elasticsearch.common.netty.channel.socket.nio.NioWorker.executeInIoThread(NioWorker.java:
38) ~[elasticsearch-0.19.4.jar:na]
at
org.elasticsearch.common.netty.channel.socket.nio.AbstractNioChannelSink.execute(AbstractNioChannelSink.java:
34) ~[elasticsearch-0.19.4.jar:na]
Caused by: java.io.IOException: Unable to establish loopback
connection
at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:106) ~[na:
1.6.0_32]
at java.security.AccessController.doPrivileged(Native Method)
~[na:1.6.0_32]
at sun.nio.ch.PipeImpl.(PipeImpl.java:122) ~[na:
1.6.0_32]
at
sun.nio.ch.SelectorProviderImpl.openPipe(SelectorProviderImpl.java:27)
~[na:1.6.0_32]
at java.nio.channels.Pipe.open(Pipe.java:133) ~[na:1.6.0_32]
at
sun.nio.ch.WindowsSelectorImpl.(WindowsSelectorImpl.java:104)
~[na:1.6.0_32]
Caused by: java.nio.channels.ClosedByInterruptException: null
at
java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:
184) ~[na:1.6.0_32]
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:
543) ~[na:1.6.0_32]
at java.nio.channels.SocketChannel.open(SocketChannel.java:
146) ~[na:1.6.0_32]
at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:78) ~[na:
1.6.0_32]
at java.security.AccessController.doPrivileged(Native Method)
~[na:1.6.0_32]
at sun.nio.ch.PipeImpl.(PipeImpl.java:122) ~[na:
1.6.0_32]
[warn] n.c.DefaultChannelPipeline - An exception was thrown by an
exception handler.
org.elasticsearch.common.netty.channel.ChannelException: Failed to
create a selector.
at
org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.start(AbstractNioWorker.java:
162) ~[elasticsearch-0.19.4.jar:na]
at
org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.executeInIoThread(AbstractNioWorker.java:
314) ~[elasticsearch-0.19.4.jar:na]
at
org.elasticsearch.common.netty.channel.socket.nio.NioWorker.executeInIoThread(NioWorker.java:
38) ~[elasticsearch-0.19.4.jar:na]
at
org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.executeInIoThread(AbstractNioWorker.java:
298) ~[elasticsearch-0.19.4.jar:na]
at
org.elasticsearch.common.netty.channel.socket.nio.NioWorker.executeInIoThread(NioWorker.java:
38) ~[elasticsearch-0.19.4.jar:na]
at
org.elasticsearch.common.netty.channel.socket.nio.AbstractNioChannelSink.execute(AbstractNioChannelSink.java:
34) ~[elasticsearch-0.19.4.jar:na]
Caused by: java.io.IOException: Unable to establish loopback
connection
at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:106) ~[na:
1.6.0_32]
at java.security.AccessController.doPrivileged(Native Method)
~[na:1.6.0_32]
at sun.nio.ch.PipeImpl.(PipeImpl.java:122) ~[na:
1.6.0_32]
at
sun.nio.ch.SelectorProviderImpl.openPipe(SelectorProviderImpl.java:27)
~[na:1.6.0_32]
at java.nio.channels.Pipe.open(Pipe.java:133) ~[na:1.6.0_32]
at
sun.nio.ch.WindowsSelectorImpl.(WindowsSelectorImpl.java:104)
~[na:1.6.0_32]
Caused by: java.nio.channels.ClosedByInterruptException: null
at
java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:
184) ~[na:1.6.0_32]
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:
543) ~[na:1.6.0_32]
at java.nio.channels.SocketChannel.open(SocketChannel.java:
146) ~[na:1.6.0_32]
at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:78) ~[na:
1.6.0_32]
at java.security.AccessController.doPrivileged(Native Method)
~[na:1.6.0_32]
at sun.nio.ch.PipeImpl.(PipeImpl.java:122) ~[na:
1.6.0_32]
[warn] n.c.DefaultChannelPipeline - An exception was thrown by an
exception handler.
org.elasticsearch.common.netty.channel.ChannelException: Failed to
create a selector.
at
org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.start(AbstractNioWorker.java:
162) ~[elasticsearch-0.19.4.jar:na]
at
org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.executeInIoThread(AbstractNioWorker.java:
314) ~[elasticsearch-0.19.4.jar:na]
at
org.elasticsearch.common.netty.channel.socket.nio.NioWorker.executeInIoThread(NioWorker.java:
38) ~[elasticsearch-0.19.4.jar:na]
at
org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.executeInIoThread(AbstractNioWorker.java:
298) ~[elasticsearch-0.19.4.jar:na]
at
org.elasticsearch.common.netty.channel.socket.nio.NioWorker.executeInIoThread(NioWorker.java:
38) ~[elasticsearch-0.19.4.jar:na]
at
org.elasticsearch.common.netty.channel.socket.nio.AbstractNioChannelSink.execute(AbstractNioChannelSink.java:
34) ~[elasticsearch-0.19.4.jar:na]
Caused by: java.io.IOException: Unable to establish loopback
connection
at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:106) ~[na:
1.6.0_32]
at java.security.AccessController.doPrivileged(Native Method)
~[na:1.6.0_32]
at sun.nio.ch.PipeImpl.(PipeImpl.java:122) ~[na:
1.6.0_32]
at
sun.nio.ch.SelectorProviderImpl.openPipe(SelectorProviderImpl.java:27)
~[na:1.6.0_32]
at java.nio.channels.Pipe.open(Pipe.java:133) ~[na:1.6.0_32]
at
sun.nio.ch.WindowsSelectorImpl.(WindowsSelectorImpl.java:104)
~[na:1.6.0_32]
Caused by: java.nio.channels.ClosedByInterruptException: null
at
java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:
184) ~[na:1.6.0_32]
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:
543) ~[na:1.6.0_32]
at java.nio.channels.SocketChannel.open(SocketChannel.java:
146) ~[na:1.6.0_32]
at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:78) ~[na:
1.6.0_32]
at java.security.AccessController.doPrivileged(Native Method)
~[na:1.6.0_32]
at sun.nio.ch.PipeImpl.(PipeImpl.java:122) ~[na:1.6.0_32]


(Shay Banon) #2

Maybe this is the reason?:
http://weblogs.java.net/blog/binod/archive/2006/12/glassfish_and_w.html.

On Thu, May 24, 2012 at 9:28 PM, Eric Jain eric.jain@gmail.com wrote:

Since upgrading from 0.19.3 to 0.19.4, I get an exception whenever I
close an (embedded) elasticsearch instance:

client.admin().indices().prepareFlush("_all").execute().actionGet();
client.close();
node.close();

[warn] n.c.DefaultChannelPipeline - An exception was thrown by an
exception handler.
org.elasticsearch.common.netty.channel.ChannelException: Failed to
create a selector.
at

org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.start(AbstractNioWorker.java:
162) ~[elasticsearch-0.19.4.jar:na]
at

org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.executeInIoThread(AbstractNioWorker.java:
314) ~[elasticsearch-0.19.4.jar:na]
at

org.elasticsearch.common.netty.channel.socket.nio.NioWorker.executeInIoThread(NioWorker.java:
38) ~[elasticsearch-0.19.4.jar:na]
at

org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.executeInIoThread(AbstractNioWorker.java:
298) ~[elasticsearch-0.19.4.jar:na]
at

org.elasticsearch.common.netty.channel.socket.nio.NioWorker.executeInIoThread(NioWorker.java:
38) ~[elasticsearch-0.19.4.jar:na]
at

org.elasticsearch.common.netty.channel.socket.nio.AbstractNioChannelSink.execute(AbstractNioChannelSink.java:
34) ~[elasticsearch-0.19.4.jar:na]
Caused by: java.io.IOException: Unable to establish loopback
connection
at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:106) ~[na:
1.6.0_32]
at java.security.AccessController.doPrivileged(Native Method)
~[na:1.6.0_32]
at sun.nio.ch.PipeImpl.(PipeImpl.java:122) ~[na:
1.6.0_32]
at
sun.nio.ch.SelectorProviderImpl.openPipe(SelectorProviderImpl.java:27)
~[na:1.6.0_32]
at java.nio.channels.Pipe.open(Pipe.java:133) ~[na:1.6.0_32]
at
sun.nio.ch.WindowsSelectorImpl.(WindowsSelectorImpl.java:104)
~[na:1.6.0_32]
Caused by: java.nio.channels.ClosedByInterruptException: null
at

java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:
184) ~[na:1.6.0_32]
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:
543) ~[na:1.6.0_32]
at java.nio.channels.SocketChannel.open(SocketChannel.java:
146) ~[na:1.6.0_32]
at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:78) ~[na:
1.6.0_32]
at java.security.AccessController.doPrivileged(Native Method)
~[na:1.6.0_32]
at sun.nio.ch.PipeImpl.(PipeImpl.java:122) ~[na:
1.6.0_32]
[warn] n.c.DefaultChannelPipeline - An exception was thrown by an
exception handler.
org.elasticsearch.common.netty.channel.ChannelException: Failed to
create a selector.
at

org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.start(AbstractNioWorker.java:
162) ~[elasticsearch-0.19.4.jar:na]
at

org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.executeInIoThread(AbstractNioWorker.java:
314) ~[elasticsearch-0.19.4.jar:na]
at

org.elasticsearch.common.netty.channel.socket.nio.NioWorker.executeInIoThread(NioWorker.java:
38) ~[elasticsearch-0.19.4.jar:na]
at

org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.executeInIoThread(AbstractNioWorker.java:
298) ~[elasticsearch-0.19.4.jar:na]
at

org.elasticsearch.common.netty.channel.socket.nio.NioWorker.executeInIoThread(NioWorker.java:
38) ~[elasticsearch-0.19.4.jar:na]
at

org.elasticsearch.common.netty.channel.socket.nio.AbstractNioChannelSink.execute(AbstractNioChannelSink.java:
34) ~[elasticsearch-0.19.4.jar:na]
Caused by: java.io.IOException: Unable to establish loopback
connection
at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:106) ~[na:
1.6.0_32]
at java.security.AccessController.doPrivileged(Native Method)
~[na:1.6.0_32]
at sun.nio.ch.PipeImpl.(PipeImpl.java:122) ~[na:
1.6.0_32]
at
sun.nio.ch.SelectorProviderImpl.openPipe(SelectorProviderImpl.java:27)
~[na:1.6.0_32]
at java.nio.channels.Pipe.open(Pipe.java:133) ~[na:1.6.0_32]
at
sun.nio.ch.WindowsSelectorImpl.(WindowsSelectorImpl.java:104)
~[na:1.6.0_32]
Caused by: java.nio.channels.ClosedByInterruptException: null
at

java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:
184) ~[na:1.6.0_32]
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:
543) ~[na:1.6.0_32]
at java.nio.channels.SocketChannel.open(SocketChannel.java:
146) ~[na:1.6.0_32]
at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:78) ~[na:
1.6.0_32]
at java.security.AccessController.doPrivileged(Native Method)
~[na:1.6.0_32]
at sun.nio.ch.PipeImpl.(PipeImpl.java:122) ~[na:
1.6.0_32]
[warn] n.c.DefaultChannelPipeline - An exception was thrown by an
exception handler.
org.elasticsearch.common.netty.channel.ChannelException: Failed to
create a selector.
at

org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.start(AbstractNioWorker.java:
162) ~[elasticsearch-0.19.4.jar:na]
at

org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.executeInIoThread(AbstractNioWorker.java:
314) ~[elasticsearch-0.19.4.jar:na]
at

org.elasticsearch.common.netty.channel.socket.nio.NioWorker.executeInIoThread(NioWorker.java:
38) ~[elasticsearch-0.19.4.jar:na]
at

org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.executeInIoThread(AbstractNioWorker.java:
298) ~[elasticsearch-0.19.4.jar:na]
at

org.elasticsearch.common.netty.channel.socket.nio.NioWorker.executeInIoThread(NioWorker.java:
38) ~[elasticsearch-0.19.4.jar:na]
at

org.elasticsearch.common.netty.channel.socket.nio.AbstractNioChannelSink.execute(AbstractNioChannelSink.java:
34) ~[elasticsearch-0.19.4.jar:na]
Caused by: java.io.IOException: Unable to establish loopback
connection
at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:106) ~[na:
1.6.0_32]
at java.security.AccessController.doPrivileged(Native Method)
~[na:1.6.0_32]
at sun.nio.ch.PipeImpl.(PipeImpl.java:122) ~[na:
1.6.0_32]
at
sun.nio.ch.SelectorProviderImpl.openPipe(SelectorProviderImpl.java:27)
~[na:1.6.0_32]
at java.nio.channels.Pipe.open(Pipe.java:133) ~[na:1.6.0_32]
at
sun.nio.ch.WindowsSelectorImpl.(WindowsSelectorImpl.java:104)
~[na:1.6.0_32]
Caused by: java.nio.channels.ClosedByInterruptException: null
at

java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:
184) ~[na:1.6.0_32]
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:
543) ~[na:1.6.0_32]
at java.nio.channels.SocketChannel.open(SocketChannel.java:
146) ~[na:1.6.0_32]
at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:78) ~[na:
1.6.0_32]
at java.security.AccessController.doPrivileged(Native Method)
~[na:1.6.0_32]
at sun.nio.ch.PipeImpl.(PipeImpl.java:122) ~[na:1.6.0_32]


(Eric Jain) #3

On Fri, May 25, 2012 at 4:09 PM, Shay Banon kimchy@gmail.com wrote:

Maybe this is the
reason?: http://weblogs.java.net/blog/binod/archive/2006/12/glassfish_and_w.html.

I can't reproduce the error after clearing out the data dir. But if I
do see this error again, I'll check if the firewall has anything to do
with it. Thanks!


(system) #4