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.
Aha!
/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
stratagem.
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.
https://issues.apache.org/jira/browse/LUCY-185
Chow,
Marvin Humphrey