summaryrefslogtreecommitdiffstats
path: root/base/server/python
diff options
context:
space:
mode:
authorFraser Tweedale <ftweedal@redhat.com>2016-09-14 19:39:36 +1000
committerMatthew Harmsen <mharmsen@redhat.com>2016-10-10 16:37:13 -0600
commit02081bef01fd10325a27587221ed076c13de10fa (patch)
tree8c945b1b6a9a9a10aac1c398161c80978efde4ad /base/server/python
parent9043a08bef3723ca218ad7e5dd82be61166b5a1d (diff)
downloadpki-02081bef01fd10325a27587221ed076c13de10fa.tar.gz
pki-02081bef01fd10325a27587221ed076c13de10fa.tar.xz
pki-02081bef01fd10325a27587221ed076c13de10fa.zip
Block reads during reload of LDAP-based profiles
LDAP disconnect (e.g. due to DS restart) causes LDAPProfileSubsystem to drop all its profiles and reload them. If a profile is read during this time, e.g. to issue a certificate, it might not have been reloaded thus causing the operation to fail. Introduce the AsyncLoader class which allows a consumer to await the completion of a (re)load, if one is happening. Update the getProfile and getProfileIds method to use it. The existing 'initialLoadDone' CountDownLatch for blocking LDAPProfileSubsystem init until the inital load of profiles is completed was subsumed by AsyncLoader. Fixes: https://fedorahosted.org/pki/ticket/2453 NOTE: This patch is ONLY intended for Dogtag 10.4.0 versions and later; it is NOT intended to be back-ported to Dogtag 10.3.x versions.
Diffstat (limited to 'base/server/python')
0 files changed, 0 insertions, 0 deletions