pybsddb

changeset 620:f80852bca278

Replication master election tests race condition showed up after upgrading to Solaris 10 Update 10
author Jesus Cea <jcea@jcea.es>
date Mon, 16 Jan 2012 05:16:06 +0100
parents df499ce21c56
children b2f064ce1495
files ChangeLog Lib/bsddb/test/test_replication.py
diffstat 2 files changed, 12 insertions(+), 2 deletions(-) [+]
line diff
     1.1 --- a/ChangeLog	Mon Jan 16 04:35:46 2012 +0100
     1.2 +++ b/ChangeLog	Mon Jan 16 05:16:06 2012 +0100
     1.3 @@ -1,6 +1,4 @@
     1.4  5.3.0:
     1.5 -OJO: https://forums.oracle.com/forums/thread.jspa?messageID=9902860
     1.6 -Desactivo este test de momento.
     1.7    * Support Berkeley DB 5.3.x.
     1.8    * Support for "DBEnv->set_intermediate_dir()", available in
     1.9      Berkeley DB 4.3-4.6.  Patch by Garret Cooper.
    1.10 @@ -9,6 +7,11 @@
    1.11    * Fixed a testsuite compatibility problem with BDB 5.2.
    1.12    * If we are running Solaris or derivatives, and 64bit python,
    1.13      try to find the library under "/usr/local/Berkeley.*.*/64/".
    1.14 +  * Solaris 10 Update 10 exposes a very old race condition in the replication
    1.15 +    master election tests. Some details in 
    1.16 +    https://forums.oracle.com/forums/thread.jspa?messageID=9902860 .
    1.17 +    Workaround proposed in a private email from Paula Bingham (Oracle),
    1.18 +    in 20110929.
    1.19  
    1.20  5.2.0:
    1.21    * Support for Berkeley DB 5.2.
     2.1 --- a/Lib/bsddb/test/test_replication.py	Mon Jan 16 04:35:46 2012 +0100
     2.2 +++ b/Lib/bsddb/test/test_replication.py	Mon Jan 16 05:16:06 2012 +0100
     2.3 @@ -491,6 +491,13 @@
     2.4  
     2.5              self.assertTrue(self.confirmed_master)
     2.6  
     2.7 +            # Race condition showed up after upgrading to Solaris 10 Update 10
     2.8 +            # https://forums.oracle.com/forums/thread.jspa?messageID=9902860
     2.9 +            # jcea@jcea.es: See private email from Paula Bingham (Oracle),
    2.10 +            # in 20110929.
    2.11 +            while not (self.dbenvClient.rep_stat()["startup_complete"]) :
    2.12 +                pass
    2.13 +
    2.14      if db.version() >= (4,7) :
    2.15          def test04_test_clockskew(self) :
    2.16              fast, slow = 1234, 1230