ui: enqueue range endpoint times out after 60s
Describe the problem
While troubleshooting an issue, @rkruze ran into a problem while manually enqueueing a range for GC via the enqueue HTTP endpoint. The range that Roko was attempting to GC took longer than 60s to GC, so the page timed out. It was unclear if the operation succeeded or not, and Roko and the customer ended up having to hit the endpoint using curl which isn't the greatest experience.
To Reproduce
See #42625
Expected behavior We should increase the timeout interval here. Will need to check with the KV team about an appropriate threshold. We may want to avoid timing out altogether, but not yet sure of the implications of that generally.
The calls to the "Enqueue Range" endpoint (but probably all of them) set a 30s gRPC timeout header:
curl 'http://xxxx:xxx/_admin/v1/enqueue_range' -H 'Accept: application/x-protobuf' -H 'Accept-Language: en-US,en;q=0.5' -H 'Content-Type: application/x-protobuf' -H 'Connection: keep-alive' -H 'Pragma: no-cache' -H 'Cache-Control: no-cache' --data $'\x08\x00\x12\x02gc\x18\x07 \x01'
These queue runs can take longer, and make this endpoint limited in utility (we just dealt with this while debugging user issues). It is important to wait for that RPC for as long as it takes, in particular since the gRPC timeout also cancels the work server-side, meaning that the work won't get done.
Want to bump the priority on this - this has bitten us more than once. It's the thing I would fix right now if I knew how to.
@tbg What would a sane default be for this (it seems to be 30s now)? I think for the moment I'm going to increase it to something before I do the work to untangle it to wait for the request to finish.
An hour? That should cover anything I can ever anticipate needing. Thanks!
fixed by #45667
thank you!
On Fri, Mar 6, 2020 at 12:48 AM Nathan Stilwell [email protected] wrote:
fixed by #45667 https://github.com/cockroachdb/cockroach/pull/45667
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/cockroachdb/cockroach/issues/42888?email_source=notifications&email_token=ABGXPZEC5ERZQZJPLZ64QS3RGA233A5CNFSM4JT7B2UKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEN7HKFY#issuecomment-595490071, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABGXPZCCOFSLUHC3D7PXRXDRGA233ANCNFSM4JT7B2UA .