Put my question wrong.. Excuse me for spamming.. its been a tiring couple
of days and I am almost sleep typing.. Please read the snippet again.
This might be a dumb question. But I would like to confirm.
>
> Will the following snippet cause a index searcher leak and end up in an
> out of memory exception when newsearchers are created?
>
> class myCustomHandler extends SearchHandler {
> .....
> void handleRequestBody(SolrQueryRequest req, SolrQueryResponse rsp) {
>
> LocalSolrQueryRequest newReq = new LocalSolrQueryRequest();
> newReq = req.getCore();
> .............
> // newReq.close() Will removing this lead to OOME?
> }
>
My conviction is yes. But just want to confirm..
>
On Wed, Jul 18, 2012 at 11:04 PM, Karthick Duraisamy Soundararaj <
[email protected]> wrote:
> This might be a dumb question. But I would like to confirm.
>
> Will the following snippet cause a index searcher leak and end up in an
> out of memory exception when newsearchers are created?
>
> class myCustomHandler extends SearchHandler {
> .....
> void handleRequestBody(SolrQueryRequest req, SolrQueryResponse rsp) {
>
> LocalSolrQueryRequest newReq = new LocalSolrQueryRequest();
> newReq = req.getCore();
> .............
> newReq.close()
> }
>
> My conviction is yes. But just want to confirm..
>