• Stefan Metzmacher's avatar
    blackbox/dbcheck-links.sh: reproduce lost deleted object problem · 9339b096
    Stefan Metzmacher authored
    When a parent object is removed during the tombstone garbage collection
    before a child object and samba-tool dbcheck runs at the same time, the
    following can happen:
    
    - If the object child had DISALLOW_MOVE_ON_DELETE in systemFlags,
      samba-tool dbcheck moves the object under the LostAndFound[Config]
      object (as an originating update!)
    - The lastKnownParent attribute is removed (as an originating update!)
    
    These originating updates cause the object to have an extended time
    as tombstone. And these changes are replicated to other DCs,
    which very likely already removed the object completely!
    
    This means the destination DC of replication has no chance to handle
    the object it gets from the source DC with just 2 attributes (name, lastKnownParent).
    
    The destination logs something like:
    
      No objectClass found in replPropertyMetaData
    
    BUG: https://bugzilla.samba.org/show_bug.cgi?id=13816Signed-off-by: default avatarStefan Metzmacher <metze@samba.org>
    Reviewed-by: default avatarAndrew Bartlett <abartlet@samba.org>
    (cherry picked from commit 5357f591)
    9339b096
Name
Last commit
Last update
..
flapping.d Loading commit data...
gnupg Loading commit data...
knownfail.d Loading commit data...
manage-ca Loading commit data...
target Loading commit data...
README Loading commit data...
SocketWrapper.pm Loading commit data...
Subunit.pm Loading commit data...
TODO Loading commit data...
devel_env.sh Loading commit data...
filter-subunit Loading commit data...
flapping Loading commit data...
format-subunit Loading commit data...
format-subunit-json Loading commit data...
gdb_backtrace Loading commit data...
gdb_backtrace_test.c Loading commit data...
gdb_run Loading commit data...
in_screen Loading commit data...
knownfail Loading commit data...
perf_tests.py Loading commit data...
quick Loading commit data...
save.env.sh Loading commit data...
selftest.pl Loading commit data...
selftest.pl.1 Loading commit data...
selftesthelpers.py Loading commit data...
skip Loading commit data...
skip.no-GSS_KRB5_CRED_NO_CI_FLAGS_X Loading commit data...
skip_mit_kdc Loading commit data...
slow Loading commit data...
subunithelper.py Loading commit data...
tap2subunit Loading commit data...
tests.py Loading commit data...
valgrind_run Loading commit data...
wscript Loading commit data...