mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-21 10:01:54 +00:00
checker results: more tests, update interface docs
This commit is contained in:
parent
9676586732
commit
84a5778507
@ -1560,11 +1560,20 @@ class ICheckerResults(Interface):
|
||||
'seq%d-%s-sh%d', containing the sequence number, the
|
||||
roothash, and the share number.
|
||||
|
||||
Mutable files will add the following keys::
|
||||
The following keys are most relevant for mutable files, but immutable
|
||||
files will provide sensible values too::
|
||||
|
||||
count-wrong-shares: the number of shares for versions other than
|
||||
the 'best' one (highest sequence number, highest
|
||||
roothash). These are either old ...
|
||||
count-wrong-shares: the number of shares for versions other than the
|
||||
'best' one (which is defined as being the
|
||||
recoverable version with the highest sequence
|
||||
number, then the highest roothash). These are
|
||||
either leftover shares from an older version
|
||||
(perhaps on a server that was offline when an
|
||||
update occurred), shares from an unrecoverable
|
||||
newer version, or shares from an alternate
|
||||
current version that results from an
|
||||
uncoordinated write collision. For a healthy
|
||||
file, this will equal 0.
|
||||
|
||||
count-recoverable-versions: the number of recoverable versions of
|
||||
the file. For a healthy file, this will
|
||||
|
@ -2043,6 +2043,9 @@ class DeepCheck(SystemTestMixin, unittest.TestCase):
|
||||
sorted([idlib.nodeid_b2a(c.nodeid)
|
||||
for c in self.clients]), where)
|
||||
#self.failUnless("sharemap" in d)
|
||||
self.failUnlessEqual(d["count-wrong-shares"], 0, where)
|
||||
self.failUnlessEqual(d["count-recoverable-versions"], 1, where)
|
||||
self.failUnlessEqual(d["count-unrecoverable-versions"], 0, where)
|
||||
|
||||
|
||||
def check_and_repair_is_healthy(self, cr, where):
|
||||
|
Loading…
x
Reference in New Issue
Block a user