From 020d4ccb5915711dc5ecdd80eb161aa339a1e7d6 Mon Sep 17 00:00:00 2001 From: Jan Fajerski Date: Thu, 10 Aug 2017 19:01:34 +0200 Subject: [PATCH] doc/mgr/plugins: mgr accessor during init causes exception Currently calling a mgr accessor during a plugins __init__ method causes a cyclic locking exception. Signed-off-by: Jan Fajerski --- doc/mgr/plugins.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/mgr/plugins.rst b/doc/mgr/plugins.rst index b5a13cc3eada1..465f2cc0db221 100644 --- a/doc/mgr/plugins.rst +++ b/doc/mgr/plugins.rst @@ -97,6 +97,9 @@ have no metadata, or vice versa. On a healthy cluster these will be very rare transient states, but plugins should be written to cope with the possibility. +Note that these accessors must not be called in the modules ``__init__`` +function. This will result in a circular locking exception. + ``get(self, data_name)`` Fetch named cluster-wide objects such as the OSDMap. Valid things -- 2.39.5