unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Eric J <eric@deptj.eu>
To: notmuch@notmuchmail.org
Subject: Re: Lost updates to Notmuch database
Date: Sat, 27 Feb 2016 21:04:41 +0100 (CET)	[thread overview]
Message-ID: <560022a0fd262b994edd22b981f0a49f74c3b01b-NM@bruno.deptj.eu> (raw)
In-Reply-To: <6d9d87c8bbd4c9499574382a9aa1d868a41f525a-NM@bruno.deptj.eu>

On Sun, 21 Feb 2016 13:57:30 +0100 (CET), Eric J <eric@deptj.eu> wrote:
> On Wed, 17 Feb 2016 21:44:23 +0100 (CET), Eric J <eric@deptj.eu> wrote:
> > Using the API, I am adding single mail files, already in the maildir, to
> > the Notmuch database and tagging them. It works, every time, as long as
> > I run it one file at a time. 
> > 
> > However, if I do it twice, in different processes, at the same time, one
> > file is added and tagged properly, the other is not (totally unfindable
> > by notmuch search). Neither process reports any error, and they both log
> > their actions normally. Actually a third simultaneous process also fails
> > to leave any result in the database.
> 8>< --------
> > 
> > The wrapper around the API for Tcl is very simple, and I can not see any
> > way for that or Tcl itself to cause this sort of problem. Beyond this,
> > I haven't thought of any way to decide if this could be a Notmuch problem
> > or a Xapian problem.
> 8>< --------
> 
> Well, after some experimenting, this is not specific to Notmuch at all.
> Xapian itself has Tcl bindings, and they also silently fail to lock the
> file. So does putting a minimally changed copy of Xapian's locking code
> directly in a Tcl extension, though that code works when called from a
> tiny C main program instead.
> 
> So thanks for looking, I will report here if I find out why.

Well, this seems to be a Tcl problem, not present in 8.5, but present in
8.6, up until the very new 8.6.5rc2, where it seems to work. Sadly, I
still have no explanation of the problem.

Eric
-- 
ms fnd in a lbry

      reply	other threads:[~2016-02-27 20:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-17 20:44 Lost updates to Notmuch database Eric J
2016-02-18  1:03 ` David Bremner
2016-02-18 12:59   ` Eric J
2016-02-18 14:30   ` Tomi Ollila
2016-02-18 21:26     ` Eric J
2016-02-21 12:57 ` Eric J
2016-02-27 20:04   ` Eric J [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=560022a0fd262b994edd22b981f0a49f74c3b01b-NM@bruno.deptj.eu \
    --to=eric@deptj.eu \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).