Bug 9527 - reindexing is triggered twice per partition when modifying @ATTRIBUTE in sam.ldb
reindexing is triggered twice per partition when modifying @ATTRIBUTE in sam.ldb
Status: NEW
Product: Samba 4.0
Classification: Unclassified
Component: AD: LDB/DSDB/SAMDB
4.0.0
All All
: P5 minor
: ---
Assigned To: Andrew Bartlett
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-01-02 02:41 UTC by Matthieu Patou
Modified: 2015-07-31 08:20 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthieu Patou 2013-01-02 02:41:07 UTC
I introduced some code to debug the reindexing: 

[5/6 in 1m28s] samba4.ldap_schema.python(fl2003dc)
Reindexing /usr/local/src/samba/st/fl2003dc/private/sam.ldb due to modification on @ATTRIBUTES
Reindexing /usr/local/src/samba/st/fl2003dc/private/sam.ldb.d/CN=SCHEMA,CN=CONFIGURATION,DC=SAMBA2003,DC=EXAMPLE,DC=COM.ldb due to modification on @ATTRIBUTES
Reindexing /usr/local/src/samba/st/fl2003dc/private/sam.ldb.d/CN=CONFIGURATION,DC=SAMBA2003,DC=EXAMPLE,DC=COM.ldb due to modification on @ATTRIBUTES
Reindexing /usr/local/src/samba/st/fl2003dc/private/sam.ldb.d/DC=DOMAINDNSZONES,DC=SAMBA2003,DC=EXAMPLE,DC=COM.ldb due to modification on @ATTRIBUTES
Reindexing /usr/local/src/samba/st/fl2003dc/private/sam.ldb.d/DC=FORESTDNSZONES,DC=SAMBA2003,DC=EXAMPLE,DC=COM.ldb due to modification on @ATTRIBUTES
Reindexing /usr/local/src/samba/st/fl2003dc/private/sam.ldb.d/DC=SAMBA2003,DC=EXAMPLE,DC=COM.ldb due to modification on @ATTRIBUTES
Reindexing /usr/local/src/samba/st/fl2003dc/private/sam.ldb.d/CN=SCHEMA,CN=CONFIGURATION,DC=SAMBA2003,DC=EXAMPLE,DC=COM.ldb due to modification on @ATTRIBUTES
Reindexing /usr/local/src/samba/st/fl2003dc/private/sam.ldb.d/CN=CONFIGURATION,DC=SAMBA2003,DC=EXAMPLE,DC=COM.ldb due to modification on @ATTRIBUTES
Reindexing /usr/local/src/samba/st/fl2003dc/private/sam.ldb.d/DC=DOMAINDNSZONES,DC=SAMBA2003,DC=EXAMPLE,DC=COM.ldb due to modification on @ATTRIBUTES
Reindexing /usr/local/src/samba/st/fl2003dc/private/sam.ldb.d/DC=FORESTDNSZONES,DC=SAMBA2003,DC=EXAMPLE,DC=COM.ldb due to modification on @ATTRIBUTES
Reindexing /usr/local/src/samba/st/fl2003dc/private/sam.ldb.d/DC=SAMBA2003,DC=EXAMPLE,DC=COM.ldb due to modification on @ATTRIBUTES


Reindexing /usr/local/src/samba/st/fl2003dc/private/sam.ldb due to modification on @ATTRIBUTES
Reindexing /usr/local/src/samba/st/fl2003dc/private/sam.ldb.d/CN=SCHEMA,CN=CONFIGURATION,DC=SAMBA2003,DC=EXAMPLE,DC=COM.ldb due to modification on @ATTRIBUTES
Reindexing /usr/local/src/samba/st/fl2003dc/private/sam.ldb.d/CN=CONFIGURATION,DC=SAMBA2003,DC=EXAMPLE,DC=COM.ldb due to modification on @ATTRIBUTES
Reindexing /usr/local/src/samba/st/fl2003dc/private/sam.ldb.d/DC=DOMAINDNSZONES,DC=SAMBA2003,DC=EXAMPLE,DC=COM.ldb due to modification on @ATTRIBUTES
Reindexing /usr/local/src/samba/st/fl2003dc/private/sam.ldb.d/DC=FORESTDNSZONES,DC=SAMBA2003,DC=EXAMPLE,DC=COM.ldb due to modification on @ATTRIBUTES
Reindexing /usr/local/src/samba/st/fl2003dc/private/sam.ldb.d/DC=SAMBA2003,DC=EXAMPLE,DC=COM.ldb due to modification on @ATTRIBUTES
Reindexing /usr/local/src/samba/st/fl2003dc/private/sam.ldb.d/CN=SCHEMA,CN=CONFIGURATION,DC=SAMBA2003,DC=EXAMPLE,DC=COM.ldb due to modification on @ATTRIBUTES
Reindexing /usr/local/src/samba/st/fl2003dc/private/sam.ldb.d/CN=CONFIGURATION,DC=SAMBA2003,DC=EXAMPLE,DC=COM.ldb due to modification on @ATTRIBUTES
Reindexing /usr/local/src/samba/st/fl2003dc/private/sam.ldb.d/DC=DOMAINDNSZONES,DC=SAMBA2003,DC=EXAMPLE,DC=COM.ldb due to modification on @ATTRIBUTES
Reindexing /usr/local/src/samba/st/fl2003dc/private/sam.ldb.d/DC=FORESTDNSZONES,DC=SAMBA2003,DC=EXAMPLE,DC=COM.ldb due to modification on @ATTRIBUTES
Reindexing /usr/local/src/samba/st/fl2003dc/private/sam.ldb.d/DC=SAMBA2003,DC=EXAMPLE,DC=COM.ldb due to modification on @ATTRIBUTES


Reindexing /usr/local/src/samba/st/fl2003dc/private/sam.ldb due to modification on @ATTRIBUTES
Reindexing /usr/local/src/samba/st/fl2003dc/private/sam.ldb.d/CN=SCHEMA,CN=CONFIGURATION,DC=SAMBA2003,DC=EXAMPLE,DC=COM.ldb due to modification on @ATTRIBUTES
Reindexing /usr/local/src/samba/st/fl2003dc/private/sam.ldb.d/CN=CONFIGURATION,DC=SAMBA2003,DC=EXAMPLE,DC=COM.ldb due to modification on @ATTRIBUTES
Reindexing /usr/local/src/samba/st/fl2003dc/private/sam.ldb.d/DC=DOMAINDNSZONES,DC=SAMBA2003,DC=EXAMPLE,DC=COM.ldb due to modification on @ATTRIBUTES
Reindexing /usr/local/src/samba/st/fl2003dc/private/sam.ldb.d/DC=FORESTDNSZONES,DC=SAMBA2003,DC=EXAMPLE,DC=COM.ldb due to modification on @ATTRIBUTES
Reindexing /usr/local/src/samba/st/fl2003dc/private/sam.ldb.d/DC=SAMBA2003,DC=EXAMPLE,DC=COM.ldb due to modification on @ATTRIBUTES
Reindexing /usr/local/src/samba/st/fl2003dc/private/sam.ldb.d/CN=SCHEMA,CN=CONFIGURATION,DC=SAMBA2003,DC=EXAMPLE,DC=COM.ldb due to modification on @ATTRIBUTES
Reindexing /usr/local/src/samba/st/fl2003dc/private/sam.ldb.d/CN=CONFIGURATION,DC=SAMBA2003,DC=EXAMPLE,DC=COM.ldb due to modification on @ATTRIBUTES
Reindexing /usr/local/src/samba/st/fl2003dc/private/sam.ldb.d/DC=DOMAINDNSZONES,DC=SAMBA2003,DC=EXAMPLE,DC=COM.ldb due to modification on @ATTRIBUTES
Reindexing /usr/local/src/samba/st/fl2003dc/private/sam.ldb.d/DC=FORESTDNSZONES,DC=SAMBA2003,DC=EXAMPLE,DC=COM.ldb due to modification on @ATTRIBUTES
Reindexing /usr/local/src/samba/st/fl2003dc/private/sam.ldb.d/DC=SAMBA2003,DC=EXAMPLE,DC=COM.ldb due to modification on @ATTRIBUTES


As it can be witnessed a modification on ATTRIBUTES in sam.ldb trigger 2 reindexing per partition ...
Comment 1 Matthias Dieter Wallnöfer 2014-04-24 19:33:12 UTC
This is nasty, but a bug with MINOR impact I think.