ldb test test_guid_indexed_v1_db fails on ppc64le

Lukas Slebodnik lslebodn at fedoraproject.org
Tue Aug 27 08:45:44 UTC 2019


On (27/08/19 06:27), Andrew Bartlett via samba-technical wrote:
>On Mon, 2019-08-26 at 13:29 +0200, Lukas Slebodnik via samba-technical
>wrote:
>> ehlo,
>> 
>> The repack unit test failed just only on ppc64le with ldb-2.0.5
>> Other architectures are ok
>> https://koji.fedoraproject.org/koji/taskinfo?taskID=37286196
>> 
>https://kojipkgs.fedoraproject.org//work/tasks/6219/37286219/build.log
>> 
>> BTW it would be good to suppress error messages
>> "MDB_INVALID: File is not an LMDB file".
>> I could see them also on x86_64
>> 
>
>Sadly LMDB is not portable across endian or word length boundaries. 
>
>The only way to fix this is to store a LE version of the LDB file and
>detect which to use.  We don't hit the word length issue because we
>lock this to 64 bit only so far.
>
>Do you think you could have a go at that?
>

Small update.
The issue is not related to lmbd. It fails even with pure tdb
(--without-ldb-lmdb)

sh-5.0# python3 tests/python/repack.py
Repacking database with format 0x26011968
Repacking database with format 0x26011967
Repacking database with format 0x26011968
ltdb: tdb(/tmp/tmpq1oowki8/guidindexpackv1.ldb): tdb_transaction_setup_recovery: transaction data over new region boundary

ltdb: tdb(/tmp/tmpq1oowki8/guidindexpackv1.ldb): tdb_transaction_prepare_commit: failed to setup recovery data

Failure during prepare_write): Corrupt database -> Operations error
ltdb: tdb(/tmp/tmpq1oowki8/guidindexpackv1.ldb): tdb_transaction_cancel: no transaction

ERepacking database with format 0x26011967
Repacking database with format 0x26011968
Repacking database with format 0x26011967
Repacking database with format 0x26011968
Repacking database with format 0x26011967
.
======================================================================
ERROR: test_guid_indexed_v1_db (__main__.GUIDIndexAndPackFormatTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/python/repack.py", line 197, in test_guid_indexed_v1_db
    self.toggle_guidindex_check_pack()
  File "tests/python/repack.py", line 123, in toggle_guidindex_check_pack
    self.set_guid_indexing(enable=enable)
  File "tests/python/repack.py", line 76, in set_guid_indexing
    self.l.modify(modmsg)
_ldb.LdbError: (1, 'Failure during prepare_write): Corrupt database -> Operations error')

----------------------------------------------------------------------
Ran 2 tests in 2.059s

FAILED (errors=1)

LS



More information about the samba-technical mailing list