Re: [PATCH 00/10] Fix 'notmuch new' atomicity issues
authorAustin Clements <amdragon@mit.edu>
Sun, 29 May 2011 02:51:10 +0000 (22:51 +2000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:38:27 +0000 (09:38 -0800)
1e/7abcbce8baf2fff41d5446a36cab5ece35d722 [new file with mode: 0644]

diff --git a/1e/7abcbce8baf2fff41d5446a36cab5ece35d722 b/1e/7abcbce8baf2fff41d5446a36cab5ece35d722
new file mode 100644 (file)
index 0000000..9052584
--- /dev/null
@@ -0,0 +1,112 @@
+Return-Path: <amdragon@gmail.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id C6ECB429E25\r
+       for <notmuch@notmuchmail.org>; Sat, 28 May 2011 19:51:12 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.699\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.699 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001,\r
+       RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id jYgFi6veXUdM for <notmuch@notmuchmail.org>;\r
+       Sat, 28 May 2011 19:51:12 -0700 (PDT)\r
+Received: from mail-qy0-f174.google.com (mail-qy0-f174.google.com\r
+       [209.85.216.174]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 33BAE431FD0\r
+       for <notmuch@notmuchmail.org>; Sat, 28 May 2011 19:51:12 -0700 (PDT)\r
+Received: by qyk7 with SMTP id 7so459887qyk.5\r
+       for <notmuch@notmuchmail.org>; Sat, 28 May 2011 19:51:11 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
+       h=domainkey-signature:mime-version:sender:in-reply-to:references:date\r
+       :x-google-sender-auth:message-id:subject:from:to:content-type\r
+       :content-transfer-encoding;\r
+       bh=fIcsfb3oyr8Zbk5lDzpL/ADRFzWDaUqu3s1dlV1rli0=;\r
+       b=TTirN2sIIcv599FyekNzrYkB0GxsvcH/McxzKEhs5zmiHEqsrP3Sl82g8ZyLhlo2Vs\r
+       YpzvHuA8slQvqZbO82H/wDOiVIGygwPZcl+WVVhYj4I0yBIXIAz7Tya0EYovnc3UwILX\r
+       jAafo8WoWXEE2fBrUzVlU9ogVDVarb7ujrMLE=\r
+DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;\r
+       h=mime-version:sender:in-reply-to:references:date\r
+       :x-google-sender-auth:message-id:subject:from:to:content-type\r
+       :content-transfer-encoding;\r
+       b=p8nMes83u9UuFIGAK+1w0P280w2AqWGsAwyVeIQWHc5AWiuuBZR0Foaca/JCffYDCz\r
+       1gRQHpKBQvW80P0mhgEsGN3e+pJBJlJJj4qURSHJdEfbaM+Wvl1xxwiYsWwgYbK91BhC\r
+       wW8RuQikmpOlY9yzi0u8saPYt3jusLssNUNbM=\r
+MIME-Version: 1.0\r
+Received: by 10.229.78.218 with SMTP id m26mr2511337qck.160.1306637470213;\r
+       Sat, 28 May 2011 19:51:10 -0700 (PDT)\r
+Sender: amdragon@gmail.com\r
+Received: by 10.229.188.68 with HTTP; Sat, 28 May 2011 19:51:10 -0700 (PDT)\r
+In-Reply-To: <BANLkTiktPcf9Y4fF8nP1+66GpDP6eGY2Vw@mail.gmail.com>\r
+References: <1298015940-31986-1-git-send-email-amdragon@mit.edu>\r
+       <BANLkTikOVqK7p1G2SmgJoac+n8p19_XsdQ@mail.gmail.com>\r
+       <BANLkTiktPcf9Y4fF8nP1+66GpDP6eGY2Vw@mail.gmail.com>\r
+Date: Sat, 28 May 2011 22:51:10 -0400\r
+X-Google-Sender-Auth: IR4158In8OflXC2LNDnrvoUwOYI\r
+Message-ID: <BANLkTimcVvQjSF7E65gO1KSY4KQSXsVQNw@mail.gmail.com>\r
+Subject: Re: [PATCH 00/10] Fix 'notmuch new' atomicity issues\r
+From: Austin Clements <amdragon@mit.edu>\r
+To: notmuch@notmuchmail.org\r
+Content-Type: text/plain; charset=ISO-8859-1\r
+Content-Transfer-Encoding: quoted-printable\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://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: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sun, 29 May 2011 02:51:12 -0000\r
+\r
+Rebased to current master (cb8418) as atomic-new-v4 (aka\r
+for-review/atomic-new-v4).\r
+\r
+On Wed, May 4, 2011 at 4:30 PM, Austin Clements <amdragon@mit.edu> wrote:\r
+> jrollins found a timing bug in the atomicity test. =A0A fix, plus beefed\r
+> up test comments are on a new atomic-new-v3 (and\r
+> for-review/atomic-new-v3) branch at\r
+> =A0http://awakening.csail.mit.edu/git/notmuch.git/\r
+> Since this is more than a rebase, I'll email an update to the one\r
+> changed patch in the series.\r
+>\r
+> On Tue, Apr 26, 2011 at 12:13 AM, Austin Clements <amdragon@mit.edu> wrot=\r
+e:\r
+>> Bump. =A0Now rebased against current head (with no conflicts) on\r
+>> atomic-new-v2 (and for-review/atomic-new-v2) at\r
+>> =A0http://awakening.csail.mit.edu/git/notmuch.git/\r
+>>\r
+>> On Fri, Feb 18, 2011 at 2:58 AM, Austin Clements <amdragon@mit.edu> wrot=\r
+e:\r
+>>> This patch series modifies notmuch new to perform all operations\r
+>>> atomically and to perform maildir flag synchronization eagerly. =A0As a\r
+>>> result, notmuch new can be interrupted without risking database\r
+>>> consistency or losing track of messages, but still without losing\r
+>>> progress in the middle of a big import. =A0This also paves the way for\r
+>>> fixing the antisocial locking behavior of notmuch new.\r
+>>>\r
+>>> While there are quite a few patches in the series, each one is\r
+>>> bite-sized and you can see the number of atomicity violations dropping\r
+>>> with nearly every patch using the test added by the first patch.\r
+>>>\r
+>>> On my test machine, these patches have no affect on performance.\r
+>>>\r
+>>> These patches are also available on the atomic-new-v1 branch at\r
+>>> =A0http://awakening.csail.mit.edu/git/notmuch.git/\r
+>>>\r
+>>> _______________________________________________\r
+>>> notmuch mailing list\r
+>>> notmuch@notmuchmail.org\r
+>>> http://notmuchmail.org/mailman/listinfo/notmuch\r
+>>>\r
+>>\r
+>\r