From: Alex R. <sh...@gr...> - 2005-12-17 01:57:39
|
Richard, On Fri, 2005-12-16 at 17:19 -0800, Alex Roitman wrote: > > As part of the test I need to populate the db with some records, so I h= ave a=20 > > method that stuffs lots of records into the database. However, when I=20 > > increase the number of records that are inserted I get a strange error: > >=20 > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > ERROR: test_performance (GrampsDbBase_Test.ReferenceMapTest) > > ---------------------------------------------------------------------- > > Traceback (most recent call last): > > File=20 > > "/home/gramps/devel/Personal/gramps/gramps-HEAD/test/GrampsDbBase_Test.= py",=20 > > line 210, in test_performance > > num_links =3D 10) > > File=20 > > "/home/gramps/devel/Personal/gramps/gramps-HEAD/test/GrampsDbBase_Test.= py",=20 > > line 63, in _populate_database > > add_func(lnk_sources) > > File=20 > > "/home/gramps/devel/Personal/gramps/gramps-HEAD/test/GrampsDbBase_Test.= py",=20 > > line 115, in _add_event_with_sources > > self._db.commit_event) > > File=20 > > "/home/gramps/devel/Personal/gramps/gramps-HEAD/test/GrampsDbBase_Test.= py",=20 > > line 92, in _add_object_with_source > > self._db.transaction_commit(tran, "Add Object") > > File "../src/GrampsBSDDB.py", line 882, in transaction_commit > > GrampsDbBase.transaction_commit(self,transaction,msg) > > File "../src/GrampsDbBase.py", line 1031, in transaction_commit > > self.translist =3D transaction[0:-1] + [ transaction ] > > AttributeError: Transaction instance has no attribute '__getitem__' >=20 > It fails for me with all settings set to 10. My traceback is different, > and is exactly the same as the one I get when I upgrade other objects > (the one I blamed on reference map earlier today :-): >=20 > $ python RunAllTests.py > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > ERROR: check that deleting a primary will remove the backreferences > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "/home/shura/devel-gramps/test/GrampsDbBase_Test.py", line 150, > in test_delete_primary > source =3D self._add_source() > File "/home/shura/devel-gramps/test/GrampsDbBase_Test.py", line 72, in > _add_source > self._db.add_source(source,tran) > File "../src/GrampsDbBase.py", line 743, in add_source > self.commit_source) > File "../src/GrampsDbBase.py", line 713, in _add_object > commit_func(obj,transaction) > File "../src/GrampsDbBase.py", line 382, in commit_source > self._update_reference_map(source,'Source') > File "../src/GrampsBSDDB.py", line 517, in _update_reference_map > ret =3D primary_cur.set(handle) > File "../src/GrampsBSDDB.py", line 102, in set > return self.cursor.set(str(key)) > DBNotFoundError: (-30989, 'DB_NOTFOUND: No matching key/data pair > found') To further test it, I tried with python2.4: $ python2.4 Python 2.4.2 (#2, Nov 20 2005, 17:04:48) >>> import bsddb >>> bsddb.__version__ '4.3.0' Works fine with 10 people and 100 sources: $ python2.4 RunAllTests.py ---------------------------------------------------------------------- Ran 4 tests in 6.475s OK And fails, just as it does for you (same traceback), with 100 people. Alex --=20 Alexander Roitman http://www.gramps-project.org |