1 Return-Path: <tomi.ollila@iki.fi>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by arlo.cworth.org (Postfix) with ESMTP id 177266DE020D
\r
6 for <notmuch@notmuchmail.org>; Thu, 18 Feb 2016 13:34:58 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org
\r
11 X-Spam-Status: No, score=1.189 tagged_above=-999 required=5 tests=[AWL=-0.566,
\r
12 DATE_IN_PAST_06_12=1.103, SPF_NEUTRAL=0.652] autolearn=disabled
\r
13 Received: from arlo.cworth.org ([127.0.0.1])
\r
14 by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id a_YrTmgYDpF9 for <notmuch@notmuchmail.org>;
\r
16 Thu, 18 Feb 2016 13:34:56 -0800 (PST)
\r
17 Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])
\r
18 by arlo.cworth.org (Postfix) with ESMTP id A09386DE01CA
\r
19 for <notmuch@notmuchmail.org>; Thu, 18 Feb 2016 13:34:55 -0800 (PST)
\r
20 Received: from guru.guru-group.fi (localhost [IPv6:::1])
\r
21 by guru.guru-group.fi (Postfix) with ESMTP id 819F71000CA;
\r
22 Thu, 18 Feb 2016 16:30:34 +0200 (EET)
\r
23 From: Tomi Ollila <tomi.ollila@iki.fi>
\r
24 To: David Bremner <david@tethera.net>, Eric J <eric@deptj.eu>,
\r
25 notmuch@notmuchmail.org
\r
26 Subject: Re: Lost updates to Notmuch database
\r
27 In-Reply-To: <871t8avnhq.fsf@zancas.localnet>
\r
28 References: <337393ce5e2484d64f837a44b2c4f2ea32f91295-NM@bruno.deptj.eu>
\r
29 <871t8avnhq.fsf@zancas.localnet>
\r
30 User-Agent: Notmuch/0.21+70~g0bc8909 (http://notmuchmail.org) Emacs/24.3.1
\r
31 (x86_64-unknown-linux-gnu)
\r
32 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL
\r
33 $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F
\r
34 !)g;OY^,BjTbr)Np:%c_o'jj,Z
\r
35 Date: Thu, 18 Feb 2016 16:30:34 +0200
\r
36 Message-ID: <m27fi2nl9x.fsf@guru.guru-group.fi>
\r
38 Content-Type: text/plain
\r
39 X-BeenThere: notmuch@notmuchmail.org
\r
40 X-Mailman-Version: 2.1.20
\r
42 List-Id: "Use and development of the notmuch mail system."
\r
43 <notmuch.notmuchmail.org>
\r
44 List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,
\r
45 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
46 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>
\r
47 List-Post: <mailto:notmuch@notmuchmail.org>
\r
48 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
49 List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,
\r
50 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
51 X-List-Received-Date: Thu, 18 Feb 2016 21:34:58 -0000
\r
53 On Thu, Feb 18 2016, David Bremner <david@tethera.net> wrote:
\r
55 > Eric J <eric@deptj.eu> writes:
\r
57 >> However, if I do it twice, in different processes, at the same time, one
\r
58 >> file is added and tagged properly, the other is not (totally unfindable
\r
59 >> by notmuch search). Neither process reports any error, and they both log
\r
60 >> their actions normally. Actually a third simultaneous process also fails
\r
61 >> to leave any result in the database.
\r
63 > It should be impossible for more than one process to open a Xapian
\r
64 > database for writing at the same time. So if the processes are really
\r
65 > running in parallel, you should be getting error codes from the later
\r
66 > calls to notmuch_database_open{_verbose}. You claim that's not
\r
67 > happening, which is puzzling. Maybe you can try to duplicate your
\r
68 > problem with a tiny C program.
\r
70 In addition to that (or even before), you could
\r
72 1) be able to reproduce the problem
\r
73 2) try to reproduce it prefixing the command with ltrace -tt
\r
74 3) examine carefully the ltrace logs to figure out where the proble lies
\r
78 Hmm, Interestingly when I run
\r
80 LD_LIBRARY_PATH=~/vc/ext/notmuch/lib ltrace -f -tt ~/vc/ext/notmuch/notmuch-shared new
\r
82 I did not see any Xapian references, but when I did
\r
84 ltrace -f -tt ~/vc/ext/notmuch/notmuch new
\r
86 I did. Interestingly when using libnotmuch.so.4 the xapian interface
\r
87 is hidden (is it baked inside ~/vc/ext/notmuch/lib/libnotmuch.so.4.3.0 :O)
\r