Re: Lost updates to Notmuch database
authorEric J <eric@deptj.eu>
Sun, 21 Feb 2016 12:57:30 +0000 (13:57 +0100)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 23:21:10 +0000 (16:21 -0700)
c1/3aeed8ce5983817af433e2fbed2b6f89420c9a [new file with mode: 0644]

diff --git a/c1/3aeed8ce5983817af433e2fbed2b6f89420c9a b/c1/3aeed8ce5983817af433e2fbed2b6f89420c9a
new file mode 100644 (file)
index 0000000..fde9a26
--- /dev/null
@@ -0,0 +1,113 @@
+Return-Path: <eric@deptj.eu>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by arlo.cworth.org (Postfix) with ESMTP id A474A6DE17CB\r
+ for <notmuch@notmuchmail.org>; Sun, 21 Feb 2016 04:58:17 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.092\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.092 tagged_above=-999 required=5 tests=[AWL=0.002, \r
+ DKIM_SIGNED=0.1, RCVD_IN_DNSWL_NONE=-0.0001,\r
+ RCVD_IN_MSPIKE_H3=-0.01, \r
+ RCVD_IN_MSPIKE_WL=-0.01, T_DKIM_INVALID=0.01] autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id mUW1Vop2EV82 for <notmuch@notmuchmail.org>;\r
+ Sun, 21 Feb 2016 04:58:14 -0800 (PST)\r
+Received: from mx1.solardns.com (mx1.solardns.com [109.73.127.119])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id 9073D6DE17BA\r
+ for <notmuch@notmuchmail.org>; Sun, 21 Feb 2016 04:58:13 -0800 (PST)\r
+Received: from [213.129.84.218] (helo=luna.solardns.com)\r
+ by mx1.solardns.com with esmtps (TLSv1.2:DHE-RSA-AES256-SHA:256)\r
+ (Exim 4.85) (envelope-from <eric@deptj.eu>) id 1aXTaT-0003aF-DI\r
+ for notmuch@notmuchmail.org; Sun, 21 Feb 2016 12:58:11 +0000\r
+DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=deptj.eu;\r
+ s=default; h=Date:Message-ID:References:In-Reply-To:To:Subject:From;\r
+ bh=qygzBr9r52UF+naunwo+Tl3FvTeo3/XC8VNdqzUxgqA=; b=mRrwFfAH+dSgWBg/445NB7BPUA\r
+ nAMVB1EpCHWogrgzMPKMTZmK+SvnM1r/449dHMisox5fccIGFHqDJOui4qOgEoztTPAkSLN7DxIAX\r
+ x/47v1Uz6l2itxB0SOMeyOmg21VTAMpe+qG0nmQboOpMpqcbns8In+wAIR9L7ZHuZpRM=;\r
+Received: from [2.2.97.150] (port=46415 helo=bruno.deptj.eu)\r
+ by luna.solardns.com with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256)\r
+ (Exim 4.86) (envelope-from <eric@deptj.eu>) id 1aXTaR-000EbB-0Q\r
+ for notmuch@notmuchmail.org; Sun, 21 Feb 2016 12:58:07 +0000\r
+Received: from eric by bruno.deptj.eu with local (Exim 4.84)\r
+ (envelope-from <eric@deptj.eu>) id 1aXTaQ-0004A1-90\r
+ for notmuch@notmuchmail.org; Sun, 21 Feb 2016 13:58:06 +0100\r
+From: Eric J <eric@deptj.eu>\r
+Subject: Re: Lost updates to Notmuch database\r
+To: notmuch@notmuchmail.org\r
+In-Reply-To: <337393ce5e2484d64f837a44b2c4f2ea32f91295-NM@bruno.deptj.eu>\r
+References: <337393ce5e2484d64f837a44b2c4f2ea32f91295-NM@bruno.deptj.eu>\r
+Message-ID: <6d9d87c8bbd4c9499574382a9aa1d868a41f525a-NM@bruno.deptj.eu>\r
+Date: Sun, 21 Feb 2016 13:57:30 +0100 (CET)\r
+X-AuthUser: deptjeu\r
+X-Filter-ID:\r
+ s0sct1PQhAABKn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213.129.84.218\r
+X-SpamExperts-Domain: out.solardns.com\r
+X-SpamExperts-Username: 213.129.84.218\r
+Authentication-Results: solardns.com;\r
+ auth=pass smtp.auth=213.129.84.218@out.solardns.com\r
+X-SpamExperts-Outgoing-Class: unsure\r
+X-SpamExperts-Outgoing-Evidence: Combined (0.42)\r
+X-Recommended-Action: accept\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.20\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sun, 21 Feb 2016 12:58:17 -0000\r
+\r
+On Wed, 17 Feb 2016 21:44:23 +0100 (CET), Eric J <eric@deptj.eu> wrote:\r
+> Using the API, I am adding single mail files, already in the maildir, to\r
+> the Notmuch database and tagging them. It works, every time, as long as\r
+> I run it one file at a time. \r
+> \r
+> However, if I do it twice, in different processes, at the same time, one\r
+> file is added and tagged properly, the other is not (totally unfindable\r
+> by notmuch search). Neither process reports any error, and they both log\r
+> their actions normally. Actually a third simultaneous process also fails\r
+> to leave any result in the database.\r
+8>< --------\r
+> \r
+> The wrapper around the API for Tcl is very simple, and I can not see any\r
+> way for that or Tcl itself to cause this sort of problem. Beyond this,\r
+> I haven't thought of any way to decide if this could be a Notmuch problem\r
+> or a Xapian problem.\r
+8>< --------\r
+\r
+Well, after some experimenting, this is not specific to Notmuch at all.\r
+Xapian itself has Tcl bindings, and they also silently fail to lock the\r
+file. So does putting a minimally changed copy of Xapian's locking code\r
+directly in a Tcl extension, though that code works when called from a\r
+tiny C main program instead.\r
+\r
+So thanks for looking, I will report here if I find out why.\r
+\r
+Eric\r
+-- \r
+ms fnd in a lbry\r