Slow tests involving bsddb - timeout
I noticed that test_anydbm and test_bsddb seemed to hang, so I -x'd them. Later on while test_whichdb was running and I was off doing something else (so didn't notice the delay), it eventually spewed this traceback: Traceback (most recent call last): File "/Users/skip/src/python/trunk/Lib/test/test_whichdb.py", line 49, in test_whichdb_name f = mod.open(_fname, 'c') File "/Users/skip/src/python/trunk/Lib/dbhash.py", line 16, in open return bsddb.hashopen(file, flag, mode) File "/Users/skip/src/python/trunk/Lib/bsddb/__init__.py", line 310, in hashopen d.open(file, db.DB_HASH, flags, mode) DBFileExistsError: (17, 'File exists -- __fop_file_setup: Retry limit (100) exceeded') Looking at _bsddb.so I see it's linked against Berkeley DB 4.5. This is on Mac OSX 10.4.11 using the MacPorts version of Berkeley DB (4.5.20). Have I somehow strayed out of the support cocoon without realizing it? I wouldn't have thought so, since the max version listed in setup.py is 4.6. Thx, Skip
I'd expect 4.5 to work fine but I don't know why you're getting such a
strange error, i've never seen that. fwiw i suggest people avoid
berkeleydb 4.6 for now.
On 12/3/07, skip@pobox.com
I noticed that test_anydbm and test_bsddb seemed to hang, so I -x'd them. Later on while test_whichdb was running and I was off doing something else (so didn't notice the delay), it eventually spewed this traceback:
Traceback (most recent call last): File "/Users/skip/src/python/trunk/Lib/test/test_whichdb.py", line 49, in test_whichdb_name f = mod.open(_fname, 'c') File "/Users/skip/src/python/trunk/Lib/dbhash.py", line 16, in open return bsddb.hashopen(file, flag, mode) File "/Users/skip/src/python/trunk/Lib/bsddb/__init__.py", line 310, in hashopen d.open(file, db.DB_HASH, flags, mode) DBFileExistsError: (17, 'File exists -- __fop_file_setup: Retry limit (100) exceeded')
Looking at _bsddb.so I see it's linked against Berkeley DB 4.5. This is on Mac OSX 10.4.11 using the MacPorts version of Berkeley DB (4.5.20). Have I somehow strayed out of the support cocoon without realizing it? I wouldn't have thought so, since the max version listed in setup.py is 4.6.
Thx,
Skip _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/greg%40krypto.org
I think I've seen this too when running the bsddb3 unittest. I think
it's caused by a previous test ending badly and leaving junk behind
that the test suite doesn't properly remove before starting. But I
don't recall the details.
--Guido
On Dec 5, 2007 5:24 PM, Gregory P. Smith
I'd expect 4.5 to work fine but I don't know why you're getting such a strange error, i've never seen that. fwiw i suggest people avoid berkeleydb 4.6 for now.
On 12/3/07, skip@pobox.com
wrote: I noticed that test_anydbm and test_bsddb seemed to hang, so I -x'd them. Later on while test_whichdb was running and I was off doing something else (so didn't notice the delay), it eventually spewed this traceback:
Traceback (most recent call last): File "/Users/skip/src/python/trunk/Lib/test/test_whichdb.py", line 49, in test_whichdb_name f = mod.open(_fname, 'c') File "/Users/skip/src/python/trunk/Lib/dbhash.py", line 16, in open return bsddb.hashopen(file, flag, mode) File "/Users/skip/src/python/trunk/Lib/bsddb/__init__.py", line 310, in hashopen d.open(file, db.DB_HASH, flags, mode) DBFileExistsError: (17, 'File exists -- __fop_file_setup: Retry limit (100) exceeded')
Looking at _bsddb.so I see it's linked against Berkeley DB 4.5. This is on Mac OSX 10.4.11 using the MacPorts version of Berkeley DB (4.5.20). Have I somehow strayed out of the support cocoon without realizing it? I wouldn't have thought so, since the max version listed in setup.py is 4.6.
Thx,
Skip _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/greg%40krypto.org
_______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/guido%40python.org
-- --Guido van Rossum (home page: http://www.python.org/~guido/)
Guido> I think I've seen this too when running the bsddb3 unittest. I Guido> think it's caused by a previous test ending badly and leaving Guido> junk behind that the test suite doesn't properly remove before Guido> starting. But I don't recall the details. Thanks, that at least gives me some hope that I can try to narrow down the problem with a little binary searching. Skip
Guido> I think I've seen this too when running the bsddb3 unittest. I Guido> think it's caused by a previous test ending badly and leaving Guido> junk behind that the test suite doesn't properly remove before Guido> starting. But I don't recall the details. skip> Thanks, that at least gives me some hope that I can try to narrow skip> down the problem with a little binary searching. The binary search wasn't very difficult. Ran regrtest with the -v and -f flags. test_anydbm was the only test. Here's the output: % ./python.exe -E -tt ../Lib/test/regrtest.py -f tests -v -uall test_anydbm test_anydbm_creation (test.test_anydbm.AnyDBMTestCase) ... ERROR test_anydbm_keys (test.test_anydbm.AnyDBMTestCase) ... ERROR test_anydbm_modification (test.test_anydbm.AnyDBMTestCase) ... ERROR test_anydbm_read (test.test_anydbm.AnyDBMTestCase) ... ERROR ====================================================================== ERROR: test_anydbm_creation (test.test_anydbm.AnyDBMTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/skip/src/python/trunk/Lib/test/test_anydbm.py", line 37, in test_anydbm_creation f = anydbm.open(_fname, 'c') File "/Users/skip/src/python/trunk/Lib/anydbm.py", line 83, in open return mod.open(file, flag, mode) File "/Users/skip/src/python/trunk/Lib/dbhash.py", line 16, in open return bsddb.hashopen(file, flag, mode) File "/Users/skip/src/python/trunk/Lib/bsddb/__init__.py", line 310, in hashopen d.open(file, db.DB_HASH, flags, mode) DBFileExistsError: (17, 'File exists -- __fop_file_setup: Retry limit (100) exceeded') ====================================================================== ERROR: test_anydbm_keys (test.test_anydbm.AnyDBMTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/skip/src/python/trunk/Lib/test/test_anydbm.py", line 58, in test_anydbm_keys self.init_db() File "/Users/skip/src/python/trunk/Lib/test/test_anydbm.py", line 69, in init_db f = anydbm.open(_fname, 'n') File "/Users/skip/src/python/trunk/Lib/anydbm.py", line 83, in open return mod.open(file, flag, mode) File "/Users/skip/src/python/trunk/Lib/dbhash.py", line 16, in open return bsddb.hashopen(file, flag, mode) File "/Users/skip/src/python/trunk/Lib/bsddb/__init__.py", line 310, in hashopen d.open(file, db.DB_HASH, flags, mode) DBFileExistsError: (17, 'File exists -- __fop_file_setup: Retry limit (100) exceeded') ====================================================================== ERROR: test_anydbm_modification (test.test_anydbm.AnyDBMTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/skip/src/python/trunk/Lib/test/test_anydbm.py", line 45, in test_anydbm_modification self.init_db() File "/Users/skip/src/python/trunk/Lib/test/test_anydbm.py", line 69, in init_db f = anydbm.open(_fname, 'n') File "/Users/skip/src/python/trunk/Lib/anydbm.py", line 83, in open return mod.open(file, flag, mode) File "/Users/skip/src/python/trunk/Lib/dbhash.py", line 16, in open return bsddb.hashopen(file, flag, mode) File "/Users/skip/src/python/trunk/Lib/bsddb/__init__.py", line 310, in hashopen d.open(file, db.DB_HASH, flags, mode) DBFileExistsError: (17, 'File exists -- __fop_file_setup: Retry limit (100) exceeded') ====================================================================== ERROR: test_anydbm_read (test.test_anydbm.AnyDBMTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/skip/src/python/trunk/Lib/test/test_anydbm.py", line 52, in test_anydbm_read self.init_db() File "/Users/skip/src/python/trunk/Lib/test/test_anydbm.py", line 69, in init_db f = anydbm.open(_fname, 'n') File "/Users/skip/src/python/trunk/Lib/anydbm.py", line 83, in open return mod.open(file, flag, mode) File "/Users/skip/src/python/trunk/Lib/dbhash.py", line 16, in open return bsddb.hashopen(file, flag, mode) File "/Users/skip/src/python/trunk/Lib/bsddb/__init__.py", line 310, in hashopen d.open(file, db.DB_HASH, flags, mode) DBFileExistsError: (17, 'File exists -- __fop_file_setup: Retry limit (100) exceeded') ---------------------------------------------------------------------- Ran 4 tests in 404.353s FAILED (errors=4) test test_anydbm failed -- errors occurred; run in verbose mode for details 1 test failed: test_anydbm Skip
participants (3)
-
Gregory P. Smith
-
Guido van Rossum
-
skip@pobox.com