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 Torsten Krah <tk...@fachschaft.imn.htwk-leipzig.de> on 2011/10/06 16:09:40 UTC

IllegalStateException, response already committed - replication related

Sometimes i am seing this in the logs - but i can not tell whats causing
it or if something may be broken, anyone got an idea how to find the
cause or whats going wrong:

2011-10-06 14:19:00.333:WARN:oejs.Response:Committed before 500
org.eclipse.jetty.io.EofException
2011-10-06
14:19:00.334:WARN:oejs.HttpConnection:/app/solrmaster/replication
java.lang.IllegalStateException: Committed
	at org.eclipse.jetty.server.Response.resetBuffer(Response.java:1069)
	at org.eclipse.jetty.server.Response.sendError(Response.java:277)
	at
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:512)
	at
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:233)
	at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:972)
	at
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:417)
	at
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:192)
	at
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:906)
	at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
	at
org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
	at
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)
	at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)
	at org.eclipse.jetty.server.Server.handle(Server.java:350)
	at
org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:442)
	at org.eclipse.jetty.server.HttpConnection
$RequestHandler.content(HttpConnection.java:927)
	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:784)
	at
org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:223)
	at
org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:46)
	at
org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:545)
	at org.eclipse.jetty.io.nio.SelectChannelEndPoint
$1.run(SelectChannelEndPoint.java:43)
	at
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)
	at org.eclipse.jetty.util.thread.QueuedThreadPool
$3.run(QueuedThreadPool.java:533)
	at java.lang.Thread.run(Thread.java:679)


Re: IllegalStateException, response already committed - replication related

Posted by Yonik Seeley <yo...@lucidimagination.com>.
On Thu, Dec 8, 2011 at 6:21 PM, Tom Lianza <to...@wishpot.com> wrote:
> We're seeing the same thing (though we're not using replication).  Based on
> the trace, it looks like it would happen when Solr's response is too slow
> for the client, and it's trying to send a response back to someone who's no
> longer listening for one.

Right, I see the same thing when I hit solr directly from a browser
with a long request, then hit refresh before the response has been
returned.

-Yonik
http://www.lucidimagination.com

Re: IllegalStateException, response already committed - replication related

Posted by Tom Lianza <to...@wishpot.com>.
We're seeing the same thing (though we're not using replication).  Based 
on the trace, it looks like it would happen when Solr's response is too 
slow for the client, and it's trying to send a response back to someone 
who's no longer listening for one.

So, I think this isn't an error in itself so much as a side effect of a 
larger problem (like why the operation is taking so long).

-- 
Tom Lianza
CTO, Wishpot.com
skype: tlianza


Re: IllegalStateException, response already committed - replication related

Posted by Torsten Krah <tk...@fachschaft.imn.htwk-leipzig.de>.
Anyone an idea?

regards