notmuch python bindings corrupt db index (was: gmail importer script)

Jason A. Donenfeld Jason at zx2c4.com
Tue Dec 11 05:47:32 PST 2012


On Tue, Dec 11, 2012 at 11:04 AM, Patrick Totzke
<patricktotzke at gmail.com> wrote:
> I ended up killing the process after i saw that ETA was >3h.

Gmail's bottleneck. Very unfortunate. Leave it going over night.

> This broke my index!
>
> afterwards, a `notmuch new` printed
>
> A Xapian exception occurred creating a directory: Expected block
> 485 to be level 1, not 0.
>
> I wasnt able to properly read the index anymore and had to
> restore an old index dump. not cool!


Can you provide any more information about this? The script properly
uses atomic transactions. Any corruption here is the result of a
notmuch library bug, which should be investigated.


More information about the notmuch mailing list