# {New I/O client boss #1-0}) Unexpected exception in the selector loop

**URL:** <https://discuss.elastic.co/t/new-i-o-client-boss-1-0-unexpected-exception-in-the-selector-loop/10288>\
**Category:** Elasticsearch\
**Created:** [January 10, 2013, 5:30am UTC](https://discuss.elastic.co/t/new-i-o-client-boss-1-0-unexpected-exception-in-the-selector-loop/10288 "2013-01-10T05:30:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Muzy](https://avatars.discourse-cdn.com/v4/letter/m/f4b2a3/32.png) [@Muzy](https://discuss.elastic.co/u/Muzy)\
**Post date:** [January 10, 2013, 5:30am UTC](https://discuss.elastic.co/t/new-i-o-client-boss-1-0-unexpected-exception-in-the-selector-loop/10288/1 "2013-01-10T05:30:54Z")

</div>

I am getting some warning in my servers. Like the one which I specified  
below. I just want to know why I am getting these warn and what is  
the remedy to recover from it. Does these warn cause any problem?

[appuser@greatauk bin]$ [Server:slave-three] 17:10:56,387 WARN  
[netty.channel.socket.nio.NioClientSocketPipelineSink] (elasticsearch[Madam  
Slay][transport\_client\_boss][T#1]{New I/O client boss #1-0}) Unexpected  
exception in the selector loop.: java.nio.channels.CancelledKeyException

[Server:slave-three] at  
sun.nio.ch.SelectionKeyImpl.ensureValid(SelectionKeyImpl.java:73)  
[rt.jar:1.6.0\_22]

[Server:slave-three] at  
sun.nio.ch.SelectionKeyImpl.readyOps(SelectionKeyImpl.java:87)  
[rt.jar:1.6.0\_22]

[Server:slave-three] at  
java.nio.channels.SelectionKey.isConnectable(SelectionKey.java:336)  
[rt.jar:1.6.0\_22]

[Server:slave-three] at  
org.elasticsearch.common.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.processSelectedKeys(NioClientSocketPipelineSink.java:365)  
[elasticsearch-0.19.9.jar:]

[Server:slave-three] at  
org.elasticsearch.common.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.run(NioClientSocketPipelineSink.java:282)  
[elasticsearch-0.19.9.jar:]

[Server:slave-three] at  
org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:102)  
[elasticsearch-0.19.9.jar:]

[Server:slave-three] at  
org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)  
[elasticsearch-0.19.9.jar:]

[Server:slave-three] at  
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)  
[rt.jar:1.6.0\_22]

[Server:slave-three] at  
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)  
[rt.jar:1.6.0\_22]

[Server:slave-three] at java.lang.Thread.run(Thread.java:679)  
[rt.jar:1.6.0\_22]

[Server:slave-three]

[Server:slave-three] 17:12:36,426 WARN  
[netty.channel.socket.nio.NioClientSocketPipelineSink] (elasticsearch[Madam  
Slay][transport\_client\_boss][T#1]{New I/O client boss #1-0}) Unexpected  
exception in the selector loop.: java.nio.channels.CancelledKeyException

[Server:slave-three] at  
sun.nio.ch.SelectionKeyImpl.ensureValid(SelectionKeyImpl.java:73)  
[rt.jar:1.6.0\_22]

[Server:slave-three] at  
sun.nio.ch.SelectionKeyImpl.readyOps(SelectionKeyImpl.java:87)  
[rt.jar:1.6.0\_22]

[Server:slave-three] at  
java.nio.channels.SelectionKey.isConnectable(SelectionKey.java:336)  
[rt.jar:1.6.0\_22]

[Server:slave-three] at  
org.elasticsearch.common.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.processSelectedKeys(NioClientSocketPipelineSink.java:365)  
[elasticsearch-0.19.9.jar:]

[Server:slave-three] at  
org.elasticsearch.common.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.run(NioClientSocketPipelineSink.java:282)  
[elasticsearch-0.19.9.jar:]

[Server:slave-three] at  
org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:102)  
[elasticsearch-0.19.9.jar:]

[Server:slave-three] at  
org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)  
[elasticsearch-0.19.9.jar:]

[Server:slave-three] at  
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)  
[rt.jar:1.6.0\_22]

[Server:slave-three] at  
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)  
[rt.jar:1.6.0\_22]

[Server:slave-three] at java.lang.Thread.run(Thread.java:679)  
[rt.jar:1.6.0\_22]

--

---

<div class="post-metadata">

**Author:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [January 14, 2013, 11:12pm UTC](https://discuss.elastic.co/t/new-i-o-client-boss-1-0-unexpected-exception-in-the-selector-loop/10288/2 "2013-01-14T23:12:48Z")

</div>

You are probably hitting this  
issue [https://issues.jboss.org/browse/NETTY-444](https://issues.jboss.org/browse/NETTY-444) . Judging from the error  
that you posted, you are running quite old version of java. I would suggest  
upgrading to a newer version. It will improve performance and stability and  
this error might also disappear.

On Thursday, January 10, 2013 12:30:54 AM UTC-5, Muzy wrote:

> I am getting some warning in my servers. Like the one which I specified  
> below. I just want to know why I am getting these warn and what is  
> the remedy to recover from it. Does these warn cause any problem?
> 
> [appuser@greatauk bin]$ [Server:slave-three] 17:10:56,387 WARN  
> [netty.channel.socket.nio.NioClientSocketPipelineSink] (elasticsearch[Madam  
> Slay][transport\_client\_boss][T#1]{New I/O client boss #1-0}) Unexpected  
> exception in the selector loop.: java.nio.channels.CancelledKeyException
> 
> [Server:slave-three] at  
> sun.nio.ch.SelectionKeyImpl.ensureValid(SelectionKeyImpl.java:73)  
> [rt.jar:1.6.0\_22]
> 
> [Server:slave-three] at  
> sun.nio.ch.SelectionKeyImpl.readyOps(SelectionKeyImpl.java:87)  
> [rt.jar:1.6.0\_22]
> 
> [Server:slave-three] at  
> java.nio.channels.SelectionKey.isConnectable(SelectionKey.java:336)  
> [rt.jar:1.6.0\_22]
> 
> [Server:slave-three] at  
> org.elasticsearch.common.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.processSelectedKeys(NioClientSocketPipelineSink.java:365)  
> [elasticsearch-0.19.9.jar:]
> 
> [Server:slave-three] at  
> org.elasticsearch.common.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.run(NioClientSocketPipelineSink.java:282)  
> [elasticsearch-0.19.9.jar:]
> 
> [Server:slave-three] at  
> org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:102)  
> [elasticsearch-0.19.9.jar:]
> 
> [Server:slave-three] at  
> org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)  
> [elasticsearch-0.19.9.jar:]
> 
> [Server:slave-three] at  
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)  
> [rt.jar:1.6.0\_22]
> 
> [Server:slave-three] at  
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)  
> [rt.jar:1.6.0\_22]
> 
> [Server:slave-three] at java.lang.Thread.run(Thread.java:679)  
> [rt.jar:1.6.0\_22]
> 
> [Server:slave-three]
> 
> [Server:slave-three] 17:12:36,426 WARN  
> [netty.channel.socket.nio.NioClientSocketPipelineSink] (elasticsearch[Madam  
> Slay][transport\_client\_boss][T#1]{New I/O client boss #1-0}) Unexpected  
> exception in the selector loop.: java.nio.channels.CancelledKeyException
> 
> [Server:slave-three] at  
> sun.nio.ch.SelectionKeyImpl.ensureValid(SelectionKeyImpl.java:73)  
> [rt.jar:1.6.0\_22]
> 
> [Server:slave-three] at  
> sun.nio.ch.SelectionKeyImpl.readyOps(SelectionKeyImpl.java:87)  
> [rt.jar:1.6.0\_22]
> 
> [Server:slave-three] at  
> java.nio.channels.SelectionKey.isConnectable(SelectionKey.java:336)  
> [rt.jar:1.6.0\_22]
> 
> [Server:slave-three] at  
> org.elasticsearch.common.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.processSelectedKeys(NioClientSocketPipelineSink.java:365)  
> [elasticsearch-0.19.9.jar:]
> 
> [Server:slave-three] at  
> org.elasticsearch.common.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.run(NioClientSocketPipelineSink.java:282)  
> [elasticsearch-0.19.9.jar:]
> 
> [Server:slave-three] at  
> org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:102)  
> [elasticsearch-0.19.9.jar:]
> 
> [Server:slave-three] at  
> org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)  
> [elasticsearch-0.19.9.jar:]
> 
> [Server:slave-three] at  
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)  
> [rt.jar:1.6.0\_22]
> 
> [Server:slave-three] at  
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)  
> [rt.jar:1.6.0\_22]
> 
> [Server:slave-three] at java.lang.Thread.run(Thread.java:679)  
> [rt.jar:1.6.0\_22]

--

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 2:56am UTC](https://discuss.elastic.co/t/new-i-o-client-boss-1-0-unexpected-exception-in-the-selector-loop/10288/3 "2017-07-06T02:56:32Z")

</div>


