lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ishan Chattopadhyaya (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (SOLR-6625) HttpClient callback in HttpSolrServer
Date Sat, 01 Aug 2015 13:09:04 GMT

    [ https://issues.apache.org/jira/browse/SOLR-6625?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14650294#comment-14650294
] 

Ishan Chattopadhyaya edited comment on SOLR-6625 at 8/1/15 1:08 PM:
--------------------------------------------------------------------

Thanks for pointing out [~yonik@apache.org]. Here's a patch that should fix this. With no
tests catching it, I overlooked; apologies. I'll run the full tests and also manual tests
with the bin/solr scripts after this patch and report back if I see any issues.

The httpClient for SDF was created as a class level member, before the init() was called.

Edit: My setup was stuck downloading restlet; now that I've copied it from another server,
I realize the issue remains. Looking into it...


was (Author: ichattopadhyaya):
Thanks for pointing out [~yonik@apache.org]. Here's a patch that should fix this. With no
tests catching it, I overlooked; apologies. I'll run the full tests and also manual tests
with the bin/solr scripts after this patch and report back if I see any issues.

The httpClient for SDF was created as a class level member, before the init() was called.

> HttpClient callback in HttpSolrServer
> -------------------------------------
>
>                 Key: SOLR-6625
>                 URL: https://issues.apache.org/jira/browse/SOLR-6625
>             Project: Solr
>          Issue Type: Improvement
>          Components: SolrJ
>            Reporter: Gregory Chanan
>            Assignee: Noble Paul
>            Priority: Minor
>         Attachments: SOLR-6625-testfailure.log, SOLR-6625-testfix.patch, SOLR-6625-testfix.patch,
SOLR-6625-testfix.patch, SOLR-6625-testfix.patch, SOLR-6625.patch, SOLR-6625.patch, SOLR-6625.patch,
SOLR-6625.patch, SOLR-6625.patch, SOLR-6625.patch, SOLR-6625.patch, SOLR-6625.patch, SOLR-6625_SolrReqPropogate.patch,
SOLR-6625_interceptor.patch, SOLR-6625_interceptor.patch, SOLR-6625_interceptor.patch, SOLR-6625_interceptor.patch,
SOLR-6625_interceptor.patch, SOLR-6625_interceptor.patch, SOLR-6625_interceptor.patch, SOLR-6625_interceptor.patch,
SOLR-6625_interceptor.patch, SOLR-6625_interceptor.patch, SOLR-6625_r1654079.patch, SOLR-6625_r1654079.patch
>
>
> Some of our setups use Solr in a SPNego/kerberos setup (we've done this by adding our
own filters to the web.xml).  We have an issue in that SPNego requires a negotiation step,
but some HttpSolrServer requests are not repeatable, notably the PUT/POST requests.  So, what
happens is, HttpSolrServer sends the requests, the server responds with a negotiation request,
and the request fails because the request is not repeatable.  We've modified our code to send
a repeatable request beforehand in these cases.
> It would be nicer if HttpSolrServer provided a pre/post callback when it was making an
httpclient request.  This would allow administrators to make changes to the request for authentication
purposes, and would allow users to make per-request changes to the httpclient calls (i.e.
modify httpclient requestconfig to modify the timeout on a per-request basis).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message