From: Daira Hopwood Date: Thu, 21 Feb 2013 01:59:48 +0000 (+0000) Subject: accounting_crawler.py: disable removing leasedb entries for disappeared shares. X-Git-Url: https://git.rkrishnan.org/%5B/%5D%20/uri/flags/-?a=commitdiff_plain;h=2f15728d8bed225e26758fa9082003c8cabe3fef;p=tahoe-lafs%2Ftahoe-lafs.git accounting_crawler.py: disable removing leasedb entries for disappeared shares. This works around ticket #1921 for now. Signed-off-by: David-Sarah Hopwood --- diff --git a/src/allmydata/storage/accounting_crawler.py b/src/allmydata/storage/accounting_crawler.py index 1adc9dba..d54f6133 100644 --- a/src/allmydata/storage/accounting_crawler.py +++ b/src/allmydata/storage/accounting_crawler.py @@ -106,7 +106,9 @@ class AccountingCrawler(ShareCrawler): for (si_s, shnum) in disappeared_shares: log.msg(format="share SI=%(si_s)s shnum=%(shnum)s unexpectedly disappeared", si_s=si_s, shnum=shnum, level=log.WEIRD) - self._leasedb.remove_deleted_share(si_a2b(si_s), shnum) + # This is temporarily disabled, because it results in failures if we're examining + # a prefix while a share is created in it (ticket #1921). + #self._leasedb.remove_deleted_share(si_a2b(si_s), shnum) recovered_sharesets = [set() for st in xrange(len(SHARETYPES))]