incubator-lucy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marvin Humphrey <>
Subject Re: [lucy-user] Re: Remote SearchServer and PolySearcher(SearchClient) usage
Date Wed, 02 Nov 2011 03:41:16 GMT
On Tue, Nov 01, 2011 at 10:36:22AM +0200, goran kent wrote:
> /////////////////////////////////////////////
> // more hacking follows
> // time passes...
> ////////////////////////////////////////////
> Solved, LucyX::Remote::SearchClient->close is not being called on
> client script end.


/me experiences simultaneous delight at seeing the problem solved and regret
for having been the source of the problem.

Nicely done!  

> Therefore the 'done' method is never sent to the remote SearchServer, so it
> doesn't know that the current search session has ended.
> I ended my script with (unelegantly):
> foreach my $remote (@searcher) {
>     $remote->close;
> }
> and the problem went away.  The SearchServer now stays in it's loop
> without error:
> DEBUG: method:[fetch_doc]
> DEBUG: method:[done]
> You may want to pop something in the docs for
> LucyX::Remote::SearchClient about the need to close remote sessions,
> or have garbage collection close those sessions.

I will work up a patch, which will probably utilize the garbage collection

FYI, I have used your earlier report from this thread to hunt down and kill
the problem where missing required parameters were not properly detected.


Marvin Humphrey

View raw message