From 46b00cfbd6a8760b8c8e7fdeea30051fbf2a7485 Mon Sep 17 00:00:00 2001 From: David-Sarah Hopwood Date: Thu, 21 Feb 2013 01:59:48 +0000 Subject: [PATCH] accounting_crawler.py: disable removing leasedb entries for disappeared shares. This works around ticket #1921 for now. Signed-off-by: David-Sarah Hopwood --- src/allmydata/storage/accounting_crawler.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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))] -- 2.45.2