Skip to content

Advanced Search: client retries requests by default 3 times

Problem

In !48334 (comment 482300656) we noticed that elasticsearch client retries all requests 3 times (even POST).

Technical detail

We create a client in https://gitlab.com/gitlab-org/gitlab/blob/master/ee/lib/gitlab/elastic/client.rb#L13-18. We should be able to override the number of retries.

Solution

Do not retry at all or retry 1 time.