-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Shawn,

On 11/29/18 17:56, Shawn Heisey wrote:
> On 11/28/2018 6:22 PM, Wei wrote:
>> I use the following http request to start solr index
>> optimization:
>> 
>> http://localhost:8983/solr/<core>/update?skipError=true -F
>> stream.body=' <optimize />'
>> 
>> The request returns status code 200 shortly, but when looking at
>> the solr instance I noticed that actual optimization has not
>> completed yet as there are more than 1 segments. Is the optimize
>> command async? What is the best approach to validate that
>> optimize is truly completed?
> 
> I do not know how that request can return a 200 before the optimize
> job completes.  The "wait" parameters (one of which Christopher
> mentioned) should all default to true, and I don't see them on your
> request.  As far as I know, the operation is NOT asynchronous.  Are
> you absolutely sure that it returned a 200? I'd like to see the
> actual response to verify.
> 
> I hate to assume you're wrong, but I think it's probably more
> likely that your HTTP request timed out because of overly
> aggressive timeout settings, probably a socket timeout.  If you
> have definitive proof that you received the 200 and a
> normal-looking response, then we'll need to look deeper.  Do you
> have the entry in solr.log for the optimize request?

When mine returned (with wait=true as a request parameter), I got a
JSON response telling me how long it took.

- -chris
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlwAeT0ACgkQHPApP6U8
pFiXchAAxMzdVbXF5WrAC3K0E5rwg99hTh9n6WdzrtaZvGfKGCI9HyxMSrp/mZ8l
CzHXCx7gYZboW2qPHQtfZM0jknNtWHdOd5CahmXzd4vpFee85PJlWWru8cVEsnHZ
hQfNhX/kVRbFlA3lA++1gYZbl/cqdlqMdfF3pn/X3nnwto7xSsYg1vKKi0+4HW/5
yWm8AmsLYK8eluHOcpheCTOGhT9NPt5OkTsT6FxLSDfyAoSVN8GnCIKZJwRtX6Ni
m826mtc55BSb0dM6Zh3xRyLl5O1BIknIC8QaZtL1OiAb/8r3iJoc/vfhP64Jzq+5
enVORXbdqeWjPF+mJoBNPnCb14VnvzyUX+G4PhrN9jPgsWzlv2FDBwWBopOiAl/L
GZKSRRasxQ6Uwk09U2x6PPwlWCP6fC3i4xJoM++Rj1VRRCu6j7duyats9UBXlQ7M
bJcjlvAVQgaAMgndBJikPEFljyhgg+Tl8iAtf1PMUO8nPoboAwIGmZZwRsoBAPXP
rvvi1/V5KHlO6tDjQ5PLZVq9Bo71BbVDEUrJkyEUU+pAU1xZKyAhWANydCuasZ+n
CLShdIlGb4LTzRdv8L0WklTdl9BAEGa0hhNjdNNJkNxBngaX9cCyTJdZi0ImswsG
CZUlriNR0Ojue/yVDF+K5YxtQmw2slFysadX4kgNPO6LS2dwkeM=
=Xd+S
-----END PGP SIGNATURE-----

Reply via email to