unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: David Bremner <david@tethera.net>
To: David Bremner <david@tethera.net>, notmuch@notmuchmail.org
Subject: [PATCH] test: add regression test for large number of deletions
Date: Sat, 24 Apr 2021 20:02:43 -0300	[thread overview]
Message-ID: <20210424230243.2302490-1-david@tethera.net> (raw)
In-Reply-To: <87h7jv1pap.fsf@tethera.net>

Prior to 9ad19e4454f there was an unhandled Xapian exception when
reindexing after a large number of deletes.  This test was used for
bisection, and will subsequently serve as a regression test.
---

It turns out my original assessment of the situation was
correct. Whatever the problem was, the delete performance optimization
changes fixed it.

 test/T700-reindex.sh | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/test/T700-reindex.sh b/test/T700-reindex.sh
index f51130e8..3b0f893e 100755
--- a/test/T700-reindex.sh
+++ b/test/T700-reindex.sh
@@ -83,4 +83,11 @@ notmuch reindex '*'
 notmuch search '*' | notmuch_search_sanitize > OUTPUT
 test_expect_equal_file EXPECTED OUTPUT
 
+
+test_begin_subtest "reindex after removing corpus"
+tar cf backup.tar mail/cur
+find mail/cur -type f -delete
+test_expect_success "notmuch reindex '*'"
+tar xf backup.tar
+
 test_done
-- 
2.30.2

  reply	other threads:[~2021-04-24 23:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-24 17:46 [PATCH] perf-test: add test for reindexing after removal/renaming msgs David Bremner
2021-04-24 18:59 ` David Bremner
2021-04-24 23:02   ` David Bremner [this message]
2021-05-23 12:02 ` David Bremner

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=20210424230243.2302490-1-david@tethera.net \
    --to=david@tethera.net \
    --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).