[tahoe-lafs-trac-stream] [tahoe-lafs] #1830: Upload (sometimes?) ignores shares.happy in tahoe.cfg
tahoe-lafs
trac at tahoe-lafs.org
Mon Aug 12 14:24:32 UTC 2013
#1830: Upload (sometimes?) ignores shares.happy in tahoe.cfg
-------------------------+-------------------------------------------------
Reporter: | Owner: kmarkley86
davidsarah | Status: new
Type: defect | Milestone: 1.11.0
Priority: | Version: 1.8.1
critical | Keywords: regression upload servers-of-
Component: code- | happiness
encoding |
Resolution: |
Launchpad Bug: |
-------------------------+-------------------------------------------------
Comment (by markberger):
I'm unable to reproduce this problem on trunk with a unit test. Here is
the test I've written:
{{{
def test_cli_ignores_happy(self):
self.basedir = "cli/Check/cli_ignores_happy"
self.set_up_grid(num_servers=4)
c0 = self.g.clients[0]
c0.DEFAULT_ENCODING_PARAMETERS["k"] = 2
c0.DEFAULT_ENCODING_PARAMETERS["happy"] = 4
c0. DEFAULT_ENCODING_PARAMETERS["n"] = 4
data = upload.Data("data" * 10000, convergence="")
d = c0.upload(data)
def _setup(ur):
self.uri = ur.get_uri()
self.delete_shares_numbered(self.uri, [1])
d.addCallback(_setup)
d.addCallback(lambda ign: self.do_cli("check", "--repair",
self.uri))
def _check((rc, out, err)):
self.failUnlessReallyEqual(err, "")
self.failUnlessReallyEqual(rc, 0)
lines = out.splitlines()
self.failUnless("Summary: not healthy" in lines, out)
self.failUnless(" good-shares: 3 (encoding is 2-of-4)" in
lines, out)
d.addCallback(_check)
return d
}}}
--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/1830#comment:6>
tahoe-lafs <https://tahoe-lafs.org>
secure decentralized storage
More information about the tahoe-lafs-trac-stream
mailing list