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 96E6E6DE10A7 for ; Mon, 10 Sep 2018 08:08:13 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.002 X-Spam-Level: X-Spam-Status: No, score=0.002 tagged_above=-999 required=5 tests=[AWL=0.013, 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 UTzh5xXWnYbu for ; Mon, 10 Sep 2018 08:08:12 -0700 (PDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id 517466DE103A for ; Mon, 10 Sep 2018 08:08:11 -0700 (PDT) Received: from remotemail by fethera.tethera.net with local (Exim 4.89) (envelope-from ) id 1fzNnJ-0003nt-Hb; Mon, 10 Sep 2018 11:08:05 -0400 Received: (nullmailer pid 16370 invoked by uid 1000); Mon, 10 Sep 2018 15:08:04 -0000 From: David Bremner To: Mueen Nawaz , xapian-discuss@lists.xapian.org, notmuch@notmuchmail.org Subject: Re: Notmuch DB Problems In-Reply-To: <874lexe8mg.fsf@nawaz.org> References: <47409d4ed692a336458371102bcbcbd86ab4a067@webmail.nawaz.org> <874lf3es5a.fsf@nikula.org> <87tvn1e32k.fsf@nawaz.org> <87a7opk45p.fsf@tethera.net> <874lexe8mg.fsf@nawaz.org> Date: Mon, 10 Sep 2018 12:08:04 -0300 Message-ID: <87o9d5pezv.fsf@tethera.net> MIME-Version: 1.0 Content-Type: text/plain 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: Mon, 10 Sep 2018 15:08:13 -0000 Mueen Nawaz writes: > > DATABASE = notmuch.Database(mode=notmuch.Database.MODE.READ_WRITE) OK. So your code is locking the database, and never unlocking it (because of the hang). So that part is at least not mysterious. > I can think of two experiments: I was thinking more along the lines of something that could be part of the notmuch test suite, i.e. run in a few seconds. Or at worst in 10 minutes or so to be usable to debug. d