Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mutt-kz responds poorly if the notmuch database is not writeable #15

Closed
larsks opened this issue Apr 13, 2012 · 1 comment
Closed

mutt-kz responds poorly if the notmuch database is not writeable #15

larsks opened this issue Apr 13, 2012 · 1 comment

Comments

@larsks
Copy link

larsks commented Apr 13, 2012

I have at least three things accessing the notmuch database at various times:

  • mutt-kz
  • notmuch-deliver
  • some python code using inotify to handle file renames

With only a modest amount of email I am already seeing frequent database contention problems as two programs attempt to write to the notmuch database at the same time. Mutt-kz responds poorly if the notmuch database is not writable when it attempts to make a modification. This can cause operations to fail and appears to trigger crashes on some occasions.

I'm not all that familiar with the notmuch API, but it doesn't appear to offer any sort of blocking mechanism to wait for the database to become available. This suggests that the appropriate behavior in the event of an error is to wait and retry as necessary until the operation succeeds (or until some set threshold).

@larsks
Copy link
Author

larsks commented Apr 13, 2012

It looks like amdragon has solved this problem in the notmuch library in the locking-v2 branch of http://awakening.csail.mit.edu/git/notmuch.git. He states via IRC that "I'm planning to restructure it before posting it to the mailing list, but I've been running it without problems for weeks now.". If this is going to be solved in the near future at the library level, this issue isn't important.

@larsks larsks closed this as completed Apr 13, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant