Hello,

when doing a commit or optimize the operation takes quite long (in my
test case at least some minutes). When I submit the command via curl, I
get the response "curl: (52) Empty reply from server" though solr is
still working (as I can see from the process list and the admin
interface). I tried the options "--connect-timeout" and "--max-time"
but still curl returns after some seconds though the request is not
fully processed. The same thing happens when I submit the commands from
a PHP-script (ensuring that it waits for a server response).

I'm not sure if I'm doing something wrong, but I could imagine three
causes for this.
1) curl (or my script) simply doesn't wail long enough to get a
response from the server. Well, I think I've ensured that this is not
the case, see above.
2) Jetty (I'm using the standard installation from the example) doesn't
wait long enough to get a response from Solr and thus returns an empty
response.
3) Solr itself is the problem.

For me point 2 sounds reasonable but I have no idea how to test this.

I'm also getting empty responses when adding documents to the index.
This happens every time when a multiple of one million documents have
been added to the index. I guess the reason is, that I have a merge
factor of 10 and that the operation of adding a document takes longer
when a multiple of 10^6 documents is reached.

Is there any way to synchronize a commit or optimize with other
commands (for example in a shell script)? The example in the script
"commit" in src/scripts doesn't use any special arguments with curl and
returns some seconds after submiting the request, so this doesn't seem
to work.

Thanks in advance,
Marcus

-- 
Echte DSL-Flatrate dauerhaft für 0,- Euro*!
"Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl

Reply via email to