ldb one-level search performance issue

Andrew Bartlett abartlet at samba.org
Mon May 28 18:54:12 UTC 2018


On Mon, 2018-05-28 at 18:44 +0200, Stefan Metzmacher wrote:
> Am 28.05.2018 um 03:23 schrieb Andrew Bartlett via samba-technical:
> > On Sat, 2018-05-26 at 15:43 +1200, Andrew Bartlett via samba-technical
> > wrote:
> > > On Sat, 2018-05-26 at 07:20 +1200, Andrew Bartlett via samba-technical
> > > wrote:
> > > > 
> > > > The string component stuff was a red herring (as it would not throw an
> > > > error), but it hid this real issue:
> > > > 
> > > > Checking 18862 objects
> > > > ERROR: parent object not found for CN=kcc_BCDE3
> > > > 
> > > > Patches to get that far are in 
> > > > 
> > > > https://gitlab.com/catalyst-samba/samba/commits/abartlet-dbcheck-ideas
> > > 
> > > With that branch, the real issue can be reproduced in just two tests
> > > with:
> > > 
> > > make test TESTS="kcc dbcheck --include-env=ad_dc_ntvfs"
> > > 
> > > That should make it easier to see and sort out.
> > 
> > This seems to fix it.  Tests to follow, but this could explain a lot of
> > things, perhaps even our replication failures in repl_move that I was
> > trying to paper over with a unique prefix.
> 
> Please have a look at
> https://git.samba.org/?p=metze/samba/wip.git;a=shortlog;h=refs/heads/master4-lmdb-full
> for some reformatting, squashes and typo fixes.

The challenge continues:

https://gitlab.com/catalyst-samba/samba/-/jobs/70819529

[778(4311)/853 at 1h17m51s]
samba4.ldap.password_settings.python(ad_dc_ntvfs)
UNEXPECTED(error):
samba4.ldap.password_settings.python.password_settings.PasswordSettings
TestCase.test_pso_special_groups(ad_dc_ntvfs)
REASON: Exception: Exception: Traceback (most recent call last):
  File "/tmp/samba-
testbase/b12/samba/source4/dsdb/tests/python/password_settings.py",
line 68, in tearDown
    self.ldb.delete(self.ou, ["tree_delete:1"])
LdbError: (68, 'LDAP error 68 LDAP_ENTRY_ALREADY_EXISTS -  <error in
module samldb: Entry already exists during LDB_DELETE (68)> <>')

Very strange, but I will continue to investigate. 

Presumably something was relying on the wrong behaviour, ouch!

Andrew Bartlett

-- 
Andrew Bartlett                       http://samba.org/~abartlet/
Authentication Developer, Samba Team  http://samba.org
Samba Developer, Catalyst IT          http://catalyst.net.nz/services/samba




More information about the samba-technical mailing list