This patch specifies a set of options required to setup a retry
context. The context built from those options can later on be
passed to any of the oslo.cache backends that supports pymemcache's
retry mechanisms.
This patch also sets up the retry mechanisms context based on
the configuration option passed via oslo.config and adds it
as an argument to be passed to the selected oslo.cache backend.
This patch is needed to fix a TLS issue on stable branches introduced by
pymemcache (since train), where if a cluster node disappear the client
will fail without retrying to reconnect or to switch to an other node of
the cluster.
Partial-Bug: #1959562
Change-Id: I6c1a4872d7cf19e3a55c676ef4b4200f18e08f2c
(cherry picked from commit 42bf82d5505a0def3d22972d67fde836f5091ed1)
(cherry picked from commit 23e8e9a9f45956ef7ea74d3d443e518f13b43477)
Reviewed: https:/ /review. opendev. org/c/openstack /oslo.cache/ +/827612 /opendev. org/openstack/ oslo.cache/ commit/ 55b796be5679ffe cc64f1940da425c ac5c982fc1
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/wallaby
commit 55b796be5679ffe cc64f1940da425c ac5c982fc1
Author: Hervé Beraud <email address hidden>
Date: Fri Aug 6 14:51:15 2021 +0200
Add retry mechanisms to oslo.cache
This patch specifies a set of options required to setup a retry
context. The context built from those options can later on be
passed to any of the oslo.cache backends that supports pymemcache's
retry mechanisms.
This patch also sets up the retry mechanisms context based on
the configuration option passed via oslo.config and adds it
as an argument to be passed to the selected oslo.cache backend.
This patch is needed to fix a TLS issue on stable branches introduced by
pymemcache (since train), where if a cluster node disappear the client
will fail without retrying to reconnect or to switch to an other node of
the cluster.
Partial-Bug: #1959562 e3a55c676ef4b42 00f18e08f2c f3d22972d67fde8 36f5091ed1) f7ea74d3d443e51 8f13b43477)
Change-Id: I6c1a4872d7cf19
(cherry picked from commit 42bf82d5505a0de
(cherry picked from commit 23e8e9a9f45956e