[pybsddb] bdb replica node problem

Jesus Cea jcea at argo.es
Sat May 31 00:51:03 CEST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Yingbo Qiu wrote:
|> This is an issue only when you launch client first time. When the
|> environment already exists, even if it is outdated, you wouldn't have
|> this problem (unless you are trying to open a newly created DB in the
|> master, still not replicated to the client).
|
| But whenever run it, it always report DB_RUNRECOVERY error. even though
| last runtime have got a STARTUPDONE event
|
| I don't know whether it will create a *new environment* with DB_RECOVER
| open flag..
| But i couldn't successfully open env without DB_RECOVER flag

You shouldn't open the database before receiving the STARTUPDONE, when
starting the client first time.

Do you try my suggestion?. That is, a 5 line bootstrap client code to
bootstrap the environment first time.

I suggest you, also, to look at the replication test code in
"Lib/bsddb/test/".

- --
Jesus Cea Avion                         _/_/      _/_/_/        _/_/_/
jcea at jcea.es - http://www.jcea.es/     _/_/    _/_/  _/_/    _/_/  _/_/
jabber / xmpp:jcea at jabber.org         _/_/    _/_/          _/_/_/_/_/
.                              _/_/  _/_/    _/_/          _/_/  _/_/
"Things are not so easy"      _/_/  _/_/    _/_/  _/_/    _/_/  _/_/
"My name is Dump, Core Dump"   _/_/_/        _/_/_/      _/_/  _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQCVAwUBSECEzplgi5GaxT1NAQL+VgP/clEroXoCmlJHXbzFyJfFZB+JI3hP+7og
di3z899QVhpmSohrzf56h9PwE85Hjw8JoOO5h8Jlzu54Ec1Mml+AtXAtZcHXUz2V
DBsQlShYg0veq6kpxH8F9/H4Zdwoexp2TES0VgLMzmDEnmgAOF68gTiVCcOMDPPu
ymPe8z59dko=
=twdi
-----END PGP SIGNATURE-----



More information about the pybsddb mailing list