Yes, I have seen that doc and tried to interpret the locks information that I get from the database but I guess that I'm not experienced enough to find the root cause.
'91532', '9', '$ydb_internal', '2e2f746573742f7461626c65302d6d61696e00', '2e2f746573742f7461626c65302d6d61696e00', '', '', ''
'91532', '9', '$ydb_internal', '2e2f746573742f7461626c65312d6d61696e00', '2e2f746573742f7461626c65312d6d61696e00', '', '', ''
'91532', '9', '$ydb_internal', '2e2f746573742f7461626c65322d6d61696e00', '2e2f746573742f7461626c65322d6d61696e00', '', '', ''
'91532', '9', '$ydb_internal', '2e2f746573742f7461626c65332d6d61696e00', '2e2f746573742f7461626c65332d6d61696e00', '', '', ''
'91532', '9', '$ydb_internal', '2e2f746573742f7461626c65342d6d61696e00', '2e2f746573742f7461626c65342d6d61696e00', '', '', ''
'91532', '9', '$ydb_internal', '2e2f746573742f7461626c65352d6d61696e00', '2e2f746573742f7461626c65352d6d61696e00', '', '', ''
'91532', '9', '$ydb_internal', '2e2f746573742f7461626c65362d6d61696e00', '2e2f746573742f7461626c65362d6d61696e00', '', '', ''
'91532', '9', '$ydb_internal', '2e2f746573742f7461626c65372d6d61696e00', '2e2f746573742f7461626c65372d6d61696e00', '', '', ''
'91532', '9', '$ydb_internal', '2e2f746573742f7461626c65382d6d61696e00', '2e2f746573742f7461626c65382d6d61696e00', '', '', ''
'91532', '9', './test/table9-main', '-infinity', '+infinity', 'test', 'table9', 'main'
'91532', '9', './test/table9-main', '000100000000000000', '000100000000000000', 'test', 'table9', 'main'
'91532', '9', './test/table9-main', '000200000000000000', '000200000000000000', 'test', 'table9', 'main'
'91532', '9', './test/table9-main', '000100000000000000', '000100000000000000', 'test', 'table9', 'main'
'91532', '9', './test/table9-main', '000200000000000000', '000200000000000000', 'test', 'table9', 'main'
'91532', '9', '$ydb_internal', '-infinity', '+infinity', '', '', ''
'91532', '9', '$ydb_internal', '-infinity', '+infinity', '', '', ''
'91532', '9', '$ydb_internal', '-infinity', '+infinity', '', '', ''
'91532', '9', '$ydb_internal', '-infinity', '+infinity', '', '', ''
'91532', '9', '$ydb_internal', '-infinity', '+infinity', '', '', ''
'91532', '9', '$ydb_internal', '-infinity', '+infinity', '', '', ''
'91532', '9', './test/table6-main', '-infinity', '+infinity', 'test', 'table6', 'main'
'91532', '9', './test/table7-main', '-infinity', '+infinity', 'test', 'table7', 'main'
'91532', '9', './test/table8-main', '-infinity', '+infinity', 'test', 'table8', 'main'
'91544', '9', '$ydb_internal', '2e2f746573742f7461626c65302d73746174757300', '2e2f746573742f7461626c65302d73746174757300', '', '', ''
'91544', '9', './test/table0-status', '0600000000000000', '0600000000000000', 'test', 'table0', 'status'
'91544', '9', './test/table0-status', '0100000000000000', '0100000000000000', 'test', 'table0', 'status'
'91544', '9', './test/table0-status', '0500000000000000', '0500000000000000', 'test', 'table0', 'status'
I can see that transaction 91544 is waiting on transaction 91532 to complete, but it seems to be stuck.
But why is 91532 stuck? It isn't waiting on any other transaction from what I can see... Or could a transaction lock itself? That would be a bit weird. Also, the sql statements are not rocket science, just a bunch of INSERTs with one column.
I'm unclear as to why tables 6,7 and 8 is part of transaction 91532 since I would expect one table (using executeBatch) to equal one transaction.
And why all the $ydb_internal locks, or they are expected to be there?
Any help appreciated