Module: Gitlab::Patch::RedisClient
- Defined in:
- lib/gitlab/patch/redis_client.rb
Instance Method Summary collapse
-
#ensure_connected(retryable: true) ⇒ Object
This patch resets the connection error tracker after each call to prevent state leak across calls and requests.
Instance Method Details
#ensure_connected(retryable: true) ⇒ Object
This patch resets the connection error tracker after each call to prevent state leak across calls and requests.
The purpose of the tracker is to silence RedisClient::ConnectionErrors during reconnection attempts. More details found in gitlab.com/gitlab-com/gl-infra/scalability/-/issues/2564#note_1665334335
11 12 13 14 15 |
# File 'lib/gitlab/patch/redis_client.rb', line 11 def ensure_connected(retryable: true) super ensure Thread.current[:redis_client_error_count] = 0 end |