From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id AD5BD6DE026E for ; Sat, 7 Apr 2018 08:17:46 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[AWL=0.011, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id o1WQngAZi4vQ for ; Sat, 7 Apr 2018 08:17:45 -0700 (PDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id A5AF26DE026D for ; Sat, 7 Apr 2018 08:17:45 -0700 (PDT) Received: from remotemail by fethera.tethera.net with local (Exim 4.89) (envelope-from ) id 1f4pb4-0001pt-Q4; Sat, 07 Apr 2018 11:17:42 -0400 Received: (nullmailer pid 24249 invoked by uid 1000); Sat, 07 Apr 2018 15:17:39 -0000 From: David Bremner To: Javier Garcia , notmuch@notmuchmail.org Cc: xapian-discuss@lists.xapian.org, Patrick Totzke , Justus Winter Subject: Re: Database corruption after clean rebuild In-Reply-To: <5bde652e-8ffe-d43d-106d-a43c7a1b4126@gmail.com> References: <8a311263-a46f-3327-4054-d8d863fa0169@gmail.com> <874lknwztk.fsf@tethera.net> <87y3hzuw5z.fsf@tethera.net> <5bde652e-8ffe-d43d-106d-a43c7a1b4126@gmail.com> Date: Sat, 07 Apr 2018 12:17:39 -0300 Message-ID: <87r2nryrjg.fsf@tesseract.cs.unb.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Apr 2018 15:17:46 -0000 Javier Garcia writes: > Unfortunately I can't share my emails without the approval of other > parties. The minimum subsets that trigger the error are in the range of > 1000-5000 mails, so asking each and everyone of them is out of my reach. > I tried to replicate the problem using just spam folders without success. > > The following is a solid workaround I've stumbled upon. Afew no longer > complains and database corruption is gone. > > $ notmuch compact > $ xapian-check ~/.mail/.notmuch/xapian > =C2=A0=C2=A0 > =C2=A0=C2=A0 No errors found Right, I should have thought of compaction, that's a workaround Olly mentioned before. That strongly suggests that you are hitting the known Xapian bug. d