You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by ku3ia <de...@gmail.com> on 2014/04/02 15:45:19 UTC

Flush buffer exceptions

Hi all!
I'm using Solr 4.6.0 and Jetty 8. Sometimes in jetty's logs are these errors
and warnings:

ERROR - 2014-03-27 17:11:15.022; org.apache.solr.common.SolrException;
null:org.eclipse.jetty.io.EofException
        at
org.eclipse.jetty.http.HttpGenerator.flushBuffer(HttpGenerator.java:914)
        at
org.eclipse.jetty.http.AbstractGenerator.blockForOutput(AbstractGenerator.java:523)
        at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:147)
        at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:107)
...
Caused by: java.io.IOException: Broken pipe
        at sun.nio.ch.FileDispatcherImpl.write0(Native Method)
        at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47)
        at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93)
        at sun.nio.ch.IOUtil.write(IOUtil.java:65)
        at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:487)
        at
org.eclipse.jetty.io.nio.ChannelEndPoint.flush(ChannelEndPoint.java:310)
        at
org.eclipse.jetty.io.nio.SelectChannelEndPoint.flush(SelectChannelEndPoint.java:402)
        at
org.eclipse.jetty.http.HttpGenerator.flushBuffer(HttpGenerator.java:853)
        ... 35 more
ERROR - 2014-03-27 17:11:15.022; org.apache.solr.common.SolrException;
null:org.eclipse.jetty.io.EofException
        at
org.eclipse.jetty.http.HttpGenerator.flushBuffer(HttpGenerator.java:914)
        at
org.eclipse.jetty.http.AbstractGenerator.blockForOutput(AbstractGenerator.java:523)
        at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:147)
        at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:107)
        at
org.apache.solr.common.util.FastOutputStream.flush(FastOutputStream.java:214)
        at
org.apache.solr.common.util.FastOutputStream.flushBuffer(FastOutputStream.java:207)
...
Caused by: java.io.IOException: Broken pipe
        at sun.nio.ch.FileDispatcherImpl.write0(Native Method)
        at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47)
        at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93)
        at sun.nio.ch.IOUtil.write(IOUtil.java:65)
        at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:487)
        at
org.eclipse.jetty.io.nio.ChannelEndPoint.flush(ChannelEndPoint.java:310)
        at
org.eclipse.jetty.io.nio.SelectChannelEndPoint.flush(SelectChannelEndPoint.java:402)
        at
org.eclipse.jetty.http.HttpGenerator.flushBuffer(HttpGenerator.java:853)
        ... 35 more
WARN  - 2014-03-27 17:11:15.022; org.eclipse.jetty.server.Response;
Committed before 500 {msg=Broken
pipe,trace=org.eclipse.jetty.io.EofException
        at
org.eclipse.jetty.http.HttpGenerator.flushBuffer(HttpGenerator.java:914)
        at
org.eclipse.jetty.http.AbstractGenerator.blockForOutput(AbstractGenerator.java:523)
        at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:147)
        at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:107)
...
Caused by: java.io.IOException: Broken pipe
        at sun.nio.ch.FileDispatcherImpl.write0(Native Method)
        at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47)
        at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93)
        at sun.nio.ch.IOUtil.write(IOUtil.java:65)
        at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:487)
        at
org.eclipse.jetty.io.nio.ChannelEndPoint.flush(ChannelEndPoint.java:310)
        at
org.eclipse.jetty.io.nio.SelectChannelEndPoint.flush(SelectChannelEndPoint.java:402)
        at
org.eclipse.jetty.http.HttpGenerator.flushBuffer(HttpGenerator.java:853)
        ... 35 more
,code=500}
WARN  - 2014-03-27 17:11:15.023; org.eclipse.jetty.servlet.ServletHandler;
/solr/collection1/select
java.lang.IllegalStateException: Committed
        at org.eclipse.jetty.server.Response.resetBuffer(Response.java:1144)
...

Does anyone have some ideas about this?



--
View this message in context: http://lucene.472066.n3.nabble.com/Flush-buffer-exceptions-tp4128593.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Flush buffer exceptions

Posted by ku3ia <de...@gmail.com>.
OK. I understand. Will review check it. Many thanks.



--
View this message in context: http://lucene.472066.n3.nabble.com/Flush-buffer-exceptions-tp4128593p4128801.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Flush buffer exceptions

Posted by Alexandre Rafalovitch <ar...@gmail.com>.
Is your Solr talking directly to web browser or to a client app. If to
a browser, they may have just closed the window. If to the client, you
need to check the timeouts, crashes, etc.

Regards,
   Alex.
Personal website: http://www.outerthoughts.com/
Current project: http://www.solr-start.com/ - Accelerating your Solr proficiency


On Thu, Apr 3, 2014 at 1:40 PM, Toke Eskildsen <te...@statsbiblioteket.dk> wrote:
> On Wed, 2014-04-02 at 15:45 +0200, ku3ia wrote:
>> ERROR - 2014-03-27 17:11:15.022; org.apache.solr.common.SolrException;
>> null:org.eclipse.jetty.io.EofException
>>         at
>> org.eclipse.jetty.http.HttpGenerator.flushBuffer(HttpGenerator.java:914)
> [...]
>> java.lang.IllegalStateException: Committed
>>         at org.eclipse.jetty.server.Response.resetBuffer(Response.java:1144)
>> ...
>>
>> Does anyone have some ideas about this?
>
> Looks like your client timed out or lost the connection somehow. The
> issued Solr job is unaffected by this until it tries to deliver the
> result. When it does, it fails with an error like the one above.
>
> If this is for a search, it is an indicator that your server responds
> too slow. If this is an index update, you should increase timeouts in
> your client.
>
> - Toke Eskildsen, State and University Library, Denmark
>

Re: Flush buffer exceptions

Posted by Toke Eskildsen <te...@statsbiblioteket.dk>.
On Wed, 2014-04-02 at 15:45 +0200, ku3ia wrote:
> ERROR - 2014-03-27 17:11:15.022; org.apache.solr.common.SolrException;
> null:org.eclipse.jetty.io.EofException
>         at
> org.eclipse.jetty.http.HttpGenerator.flushBuffer(HttpGenerator.java:914)
[...]
> java.lang.IllegalStateException: Committed
>         at org.eclipse.jetty.server.Response.resetBuffer(Response.java:1144)
> ...
> 
> Does anyone have some ideas about this?

Looks like your client timed out or lost the connection somehow. The
issued Solr job is unaffected by this until it tries to deliver the
result. When it does, it fails with an error like the one above.

If this is for a search, it is an indicator that your server responds
too slow. If this is an index update, you should increase timeouts in
your client.

- Toke Eskildsen, State and University Library, Denmark