develooper Front page | perl.kiokudb | Postings from May 2009

KiokuDB::Backend::BDB and replication

Thread Next
From:
atomicstack
Date:
May 24, 2009 11:13
Subject:
KiokuDB::Backend::BDB and replication
Message ID:
b289452a0905241113y2a8079afp8a3385ede1a0f149@mail.gmail.com
I notice BerkeleyDB::Manager has attributes for replication, but no mention
in the documentation. Has anybody had luck using it in a replicated
environment? I'm tinkering with MemcacheDB but the tests seem to fail when
BDB::Manager calls BerkeleyDB::Hash->new. My XS knowledge isn't great so I'm
not sure where/how to start digging into BerkeleyDB to see if it's honouring
the replication flags properly...

[matt@quark KiokuDB-Backend-BDB-0.14-IP_2km] prove -Ilib
t/bdb_backend.t
t/bdb_backend.t .. 1/?
start $flags: 256 at /home/matt/perl-5.10/lib/BerkeleyDB/Manager.pm line
138.
has: log lock replication transactions recover create
end $flags: 18385 at /home/matt/perl-5.10/lib/BerkeleyDB/Manager.pm line
172.
BerkeleyDB::Hash->new at /home/matt/perl-5.10/lib/BerkeleyDB/Manager.pm line
377.
Non-replication DB_ENV handle attempting to modify a replicated environment
at /home/matt/perl-5.10/lib/BerkeleyDB/Manager.pm line 379.
# Looks like your test exited with 17 just after 4.
t/bdb_backend.t .. Dubious, test returned 17 (wstat 4352, 0x1100)
All 4 subtests passed

Test Summary Report
-------------------
t/bdb_backend.t (Wstat: 4352 Tests: 4 Failed: 0)
  Non-zero exit status: 17
Files=1, Tests=4,  1 wallclock secs ( 0.02 usr  0.00 sys +  0.50 cusr  0.01
csys =  0.53 CPU)
Result: FAIL


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About