You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Felipe Dantas de Souza Paiva <ca...@uolinc.com> on 2014/08/06 21:34:13 UTC

SOLRJ Stopping Streaming

Hi Guys,

in version 4.0 of SOLRJ a support for streaming response was added:

https://issues.apache.org/jira/browse/SOLR-2112

In my application, the output for the SOLR input stream is a response stream from a REST web service.

It works fine, but if the client closes the connection with the REST server, the SOLR stream continues to work. As a result of that, CPU remains being used, although nothing is being delivered to the client.

Is there a way to force the SOLR stream to be closed?

I think I would have to modify the class StreamingBinaryResponseParser, by adding a new method that checks if the SOLR stream should be closed.

Am I right? I am using the 4.1.0 version of the SOLRJ.

Thank you all.
Cheers,

Felipe Dantas de Souza Paiva
UOL - Analista de Sistemas
Av. Brig. Faria Lima, 1384, 3° andar . 01452-002 . São Paulo/SP
Telefone: 11 3092 6938

________________________________

AVISO: A informação contida neste e-mail, bem como em qualquer de seus anexos, é CONFIDENCIAL e destinada ao uso exclusivo do(s) destinatário(s) acima referido(s), podendo conter informações sigilosas e/ou legalmente protegidas. Caso você não seja o destinatário desta mensagem, informamos que qualquer divulgação, distribuição ou cópia deste e-mail e/ou de qualquer de seus anexos é absolutamente proibida. Solicitamos que o remetente seja comunicado imediatamente, respondendo esta mensagem, e que o original desta mensagem e de seus anexos, bem como toda e qualquer cópia e/ou impressão realizada a partir destes, sejam permanentemente apagados e/ou destruídos. Informações adicionais sobre nossa empresa podem ser obtidas no site http://sobre.uol.com.br/.

NOTICE: The information contained in this e-mail and any attachments thereto is CONFIDENTIAL and is intended only for use by the recipient named herein and may contain legally privileged and/or secret information.
If you are not the e-mail´s intended recipient, you are hereby notified that any dissemination, distribution or copy of this e-mail, and/or any attachments thereto, is strictly prohibited. Please immediately notify the sender replying to the above mentioned e-mail address, and permanently delete and/or destroy the original and any copy of this e-mail and/or its attachments, as well as any printout thereof. Additional information about our company may be obtained through the site http://www.uol.com.br/ir/.

Re: SOLRJ Stopping Streaming

Posted by Shawn Heisey <so...@elyograg.org>.
On 8/6/2014 1:34 PM, Felipe Dantas de Souza Paiva wrote:
> in version 4.0 of SOLRJ a support for streaming response was added:
>
> https://issues.apache.org/jira/browse/SOLR-2112
>
> In my application, the output for the SOLR input stream is a response
> stream from a REST web service.
>
> It works fine, but if the client closes the connection with the REST
> server, the SOLR stream continues to work. As a result of that, CPU
> remains being used, although nothing is being delivered to the client.
>
> Is there a way to force the SOLR stream to be closed?
>
> I think I would have to modify the class
> StreamingBinaryResponseParser, by adding a new method that checks if
> the SOLR stream should be closed.
>
> Am I right? I am using the 4.1.0 version of the SOLRJ.

The solr-user list is more appropriate for this question.

The 4.1.0 version is getting very old - the release announcement was in
January 2013.  There have been a LOT of bugs fixed in versions up
through the most recent, which is 4.9.0.  Upgrading is advised. 
Upgrading the server is also advised.

I do not see a specific issue in CHANGES.txt mentioning anything like
what you have indicated here, but we'll need to know if it's still a
problem in the latest version before filing a bug.

Thanks,
Shawn


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org