automatic reindexing of tdbs after massive update

Matthieu Patou mat at samba.org
Tue Aug 10 13:16:24 MDT 2010


  Hello,

It's not the first time that I notice error message like this after 
upgradeprovision when trying to search the samdb with ldbsearch (it 
happens with anything that open the database in fact).

ltdb: tdb(smb4.tst/private/sam.ldb.d/DC=SMB4,DC=TST.ldb): 
tdb_transaction_commit: no transaction

ltdb: tdb(smb4.tst/private/sam.ldb.d/DC=SMB4,DC=TST.ldb): 
tdb_transaction_cancel: no transaction

Simo told me on irc that it might be a transaction

Here is a stacktrace of the calls up to the cancel transaction:

#0  _tdb_transaction_cancel (tdb=0x83ea640) at 
../../lib/tdb/common/transaction.c:581
#1  0xb737c13d in tdb_transaction_cancel (tdb=0x83ea640) at 
../../lib/tdb/common/transaction.c:631
#2  0xb70df8ca in ltdb_del_trans (module=0x83ea7f8) at 
../lib/ldb/ldb_tdb/ldb_tdb.c:999
#3  0xb710fdfe in ldb_next_del_trans (module=0x83ea7f8) at 
../lib/ldb/common/ldb_modules.c:685
#4  0xb6f9dc43 in partition_del_trans (module=0x83e47a0) at 
../dsdb/samdb/ldb_modules/partition.c:830
#5  0xb710fdfe in ldb_next_del_trans (module=0x83e47a0) at 
../lib/ldb/common/ldb_modules.c:685
#6  0xb717453b in linked_attributes_del_transaction (module=0x83e4ec8) 
at ../dsdb/samdb/ldb_modules/linked_attributes.c:1073
#7  0xb710fdfe in ldb_next_del_trans (module=0x83e4ec8) at 
../lib/ldb/common/ldb_modules.c:685
#8  0xb72161e2 in replmd_del_transaction (module=0x83e5000) at 
../dsdb/samdb/ldb_modules/repl_meta_data.c:4106
#9  0xb710fdfe in ldb_next_del_trans (module=0x83e5000) at 
../lib/ldb/common/ldb_modules.c:685
#10 0xb706734b in schema_load_del_transaction (module=0x83e7f08) at 
../dsdb/samdb/ldb_modules/schema_load.c:321
#11 0xb70ffd40 in ldb_transaction_prepare_commit (ldb=0x83a3230) at 
../lib/ldb/common/ldb.c:402
#12 0xb70ffded in ldb_transaction_commit (ldb=0x83a3230) at 
../lib/ldb/common/ldb.c:428
#13 0xb7131ca0 in dsdb_autotransaction_request (sam_ldb=0x83a3230, 
req=0x92ed0e0) at ../dsdb/common/util.c:1122
#14 0xb71377df in dsdb_modify (ldb=0x83a3230, message=0x92ab8f8, 
dsdb_flags=0) at ../dsdb/common/util.c:3584
#15 0xb713785e in dsdb_replace (ldb=0x83a3230, msg=0x92ab8f8, 
dsdb_flags=0) at ../dsdb/common/util.c:3603
#16 0xb6f597ee in dsdb_schema_set_attributes (ldb=0x83a3230, 
schema=0x912dc18, write_attributes=true)
     at ../dsdb/schema/schema_set.c:152
#17 0xb6f5a613 in dsdb_set_schema (ldb=0x83a3230, schema=0x912dc18) at 
../dsdb/schema/schema_set.c:421
#18 0xb706702f in dsdb_schema_from_db (module=0x83e7f08, 
schema_dn=0x83e4620, current_usn=240520, schema=0xbfffc8ac)
     at ../dsdb/samdb/ldb_modules/schema_load.c:233
#19 0xb70672af in schema_load_init (module=0x83e7f08) at 
../dsdb/samdb/ldb_modules/schema_load.c:301
#20 0xb710ede2 in ldb_init_module_chain (ldb=0x83a3230, 
module=0x83e7f08) at ../lib/ldb/common/ldb_modules.c:388
#21 0xb710f8ee in ldb_next_init (module=0x83e7f08) at 
../lib/ldb/common/ldb_modules.c:616
#22 0xb7072839 in operational_init (ctx=0x83e7fa0) at 
../dsdb/samdb/ldb_modules/operational.c:823
#23 0xb710ede2 in ldb_init_module_chain (ldb=0x83a3230, 
module=0x83e7fa0) at ../lib/ldb/common/ldb_modules.c:388
#24 0xb710f8ee in ldb_next_init (module=0x83e80d0) at 
../lib/ldb/common/ldb_modules.c:616
#25 0xb722b489 in acl_module_init (module=0x83e8160) at 
../dsdb/samdb/ldb_modules/acl.c:189
#26 0xb710ede2 in ldb_init_module_chain (ldb=0x83a3230, 
module=0x83e8160) at ../lib/ldb/common/ldb_modules.c:388
#27 0xb710f8ee in ldb_next_init (module=0x83e8160) at 
../lib/ldb/common/ldb_modules.c:616
#28 0xb7008260 in descriptor_init (module=0x83e81f0) at 
../dsdb/samdb/ldb_modules/descriptor.c:887
#29 0xb710ede2 in ldb_init_module_chain (ldb=0x83a3230, 
module=0x83e81f0) at ../lib/ldb/common/ldb_modules.c:388
#30 0xb710f8ee in ldb_next_init (module=0x83e81f0) at 
../lib/ldb/common/ldb_modules.c:616
#31 0xb7140a69 in objectclass_init (module=0x83e8288) at 
../dsdb/samdb/ldb_modules/objectclass.c:1420
#32 0xb710ede2 in ldb_init_module_chain (ldb=0x83a3230, 
module=0x83e8288) at ../lib/ldb/common/ldb_modules.c:388
#33 0xb710f8ee in ldb_next_init (module=0x83e83b8) at 
../lib/ldb/common/ldb_modules.c:616
#34 0xb703204a in asq_init (module=0x83e8458) at 
../lib/ldb/modules/asq.c:400
#35 0xb710ede2 in ldb_init_module_chain (ldb=0x83a3230, 
module=0x83e8458) at ../lib/ldb/common/ldb_modules.c:388
#36 0xb710f8ee in ldb_next_init (module=0x83e8458) at 
../lib/ldb/common/ldb_modules.c:616
#37 0xb721d0c5 in server_sort_init (module=0x83e84e8) at 
../lib/ldb/modules/sort.c:344
#38 0xb710ede2 in ldb_init_module_chain (ldb=0x83a3230, 
module=0x83e84e8) at ../lib/ldb/common/ldb_modules.c:388
#39 0xb710f8ee in ldb_next_init (module=0x83e8610) at 
../lib/ldb/common/ldb_modules.c:616
#40 0xb71498ff in paged_request_init (module=0x83e86a8) at 
../lib/ldb/modules/paged_results.c:423
#41 0xb710ede2 in ldb_init_module_chain (ldb=0x83a3230, 
module=0x83e86a8) at ../lib/ldb/common/ldb_modules.c:388
#42 0xb710f8ee in ldb_next_init (module=0x83e86a8) at 
../lib/ldb/common/ldb_modules.c:616
#43 0xb7066986 in unlazy_init (module=0x83e8740) at 
../dsdb/samdb/ldb_modules/lazy_commit.c:119
#44 0xb710ede2 in ldb_init_module_chain (ldb=0x83a3230, 
module=0x83e8740) at ../lib/ldb/common/ldb_modules.c:388
#45 0xb710f8ee in ldb_next_init (module=0x83e8740) at 
../lib/ldb/common/ldb_modules.c:616
#46 0xb6ffad59 in rootdse_init (module=0x83e87d8) at 
../dsdb/samdb/ldb_modules/rootdse.c:611
#47 0xb710ede2 in ldb_init_module_chain (ldb=0x83a3230, 
module=0x83e87d8) at ../lib/ldb/common/ldb_modules.c:388
#48 0xb710f8ee in ldb_next_init (module=0x83e8868) at 
../lib/ldb/common/ldb_modules.c:616
#49 0xb6fab1ef in samba_dsdb_init (module=0x83a4268) at 
../dsdb/samdb/ldb_modules/samba_dsdb.c:345
#50 0xb710ede2 in ldb_init_module_chain (ldb=0x83a3230, 
module=0x83a4268) at ../lib/ldb/common/ldb_modules.c:388


It seems a bit strange as dsdb_modify is requesting a transaction (frame 
13/14)

Any idea ?

Matthieu

-- 
Matthieu Patou
Samba Team        http://samba.org



More information about the samba-technical mailing list