Re: Xapian exceptions "Key too long" during notmuch new

Subject: Re: Xapian exceptions "Key too long" during notmuch new

Date: Mon, 06 Sep 2010 17:16:35 -0500

To: Jameson Rollins

Cc: notmuch@notmuchmail.org

From: Rob Browning


Jameson Rollins <jrollins@finestructure.net> writes:

> Hey, Rob.  I've never seen this error before.  I wonder if these
> messages have some really long header names?  If it's not too onerous,
> can you find the messages where this occurred?  There's a verbose
> option, that might be useful.
>
> jamie.

OK, it looks like this is the first message that caused the exception:

Return-Path: <rsync-bounces+rlb=defaultvalue.org@lists.samba.org>
X-Original-To: rlb@raven.defaultvalue.org
Delivered-To: rlb@raven.defaultvalue.org
Received: from defaultvalue.org (omen.defaultvalue.org [192.168.1.1])
	by raven.defaultvalue.org (Postfix) with ESMTP id D63A71D3018
	for <rlb@raven.defaultvalue.org>; Thu, 30 Dec 2004 19:01:37 -0600 (CST)
Received: by defaultvalue.org (Postfix)
	id A19A64176; Thu, 30 Dec 2004 18:34:22 -0600 (CST)
Delivered-To: rlb@defaultvalue.org
Received: from lists.samba.org (dp.samba.org [66.70.73.150])
	by defaultvalue.org (Postfix) with ESMTP id 6F2F3416F
	for <rlb@defaultvalue.org>; Thu, 30 Dec 2004 18:34:22 -0600 (CST)
Received: from dp.samba.org (localhost [127.0.0.1])
	by lists.samba.org (Postfix) with ESMTP id 125E4163B82
	for <rlb@defaultvalue.org>; Fri, 31 Dec 2004 00:34:22 +0000 (GMT)
X-Original-To: rsync@lists.samba.org
Delivered-To: rsync@lists.samba.org
Received: from binome.blorf.net (dsl3-63-249-88-2.cruzio.com [63.249.88.2])
	by lists.samba.org (Postfix) with ESMTP id 80F70162BD9
	for <rsync@lists.samba.org>; Fri, 31 Dec 2004 00:33:47 +0000 (GMT)
Received: by binome.blorf.net (Postfix, from userid 1000)
	id 950F1291E; Thu, 30 Dec 2004 16:33:46 -0800 (PST)
Date: Thu, 30 Dec 2004 16:33:46 -0800
From: Wayne Davison <wayned@samba.org>
To: Stephen Schembri <SPJ.Schembri@Virgin.Net>
X-Gnus-Mail-Source: maildir:/home/rlb/incoming-mail/spool/new
Message-ID: <20041231003346.GA1188@blorf.net>
References: <!~!UENERkVCMDkAAQACAGsAAAAAAAAAOKG7EAXlEBqhuwgAKypWwgAAbXNwc3QuZGxsAAAAAABOSVRB+b+4AQCqADfZbgAAAEQ6XERvY3VtZW50cyBhbmQgU2V0dGluZ3NcU3RlcGhlblxTYWZlLU1haWxcbXlvd24ucHN0ABgAAAAAAAAAKmWF8xrwOEqmERpDM8LmDaKAAAAAAAAAGAAAAAAAAAAqZYXzGvA4SqYRGkMzwuYNwoAAABAAAACBsx7lCzP5SIlwp4aMmuqaMgAAAFJFOiAtLXBhcnRpYWxsLWRpciBub3QgYmVoYXZpbmcgbGlrZSBpdCBvdWdodCB0b28A@Virgin.Net>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="jI8keyz6grp/JLjh"
Content-Disposition: inline
In-Reply-To: <!~!UENERkVCMDkAAQACAGsAAAAAAAAAOKG7EAXlEBqhuwgAKypWwgAAbXNwc3QuZGxsAAAAAABOSVRB+b+4AQCqADfZbgAAAEQ6XERvY3VtZW50cyBhbmQgU2V0dGluZ3NcU3RlcGhlblxTYWZlLU1haWxcbXlvd24ucHN0ABgAAAAAAAAAKmWF8xrwOEqmERpDM8LmDaKAAAAAAAAAGAAAAAAAAAAqZYXzGvA4SqYRGkMzwuYNwoAAABAAAACBsx7lCzP5SIlwp4aMmuqaMgAAAFJFOiAtLXBhcnRpYWxsLWRpciBub3QgYmVoYXZpbmcgbGlrZSBpdCBvdWdodCB0b28A@Virgin.Net>
User-Agent: Mutt/1.5.6+20040907i
Cc: rsync@lists.samba.org
Subject: Re: Timeout Issues
X-BeenThere: rsync@lists.samba.org
X-Mailman-Version: 2.1.4
Precedence: list
List-Id: rsync user list <rsync.lists.samba.org>
List-Unsubscribe: <https://lists.samba.org/mailman/listinfo/rsync>,
	<mailto:rsync-request@lists.samba.org?subject=unsubscribe>
List-Archive: <http://lists.samba.org/archive/rsync>
List-Post: <mailto:rsync@lists.samba.org>
List-Help: <mailto:rsync-request@lists.samba.org?subject=help>
List-Subscribe: <https://lists.samba.org/mailman/listinfo/rsync>,
	<mailto:rsync-request@lists.samba.org?subject=subscribe>
Sender: rsync-bounces+rlb=defaultvalue.org@lists.samba.org
Errors-To: rsync-bounces+rlb=defaultvalue.org@lists.samba.org
X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on 
	raven.defaultvalue.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS 
	autolearn=ham version=3.0.1
Lines: 64
Xref: trouble.defaultvalue.org rsync:6592


--jI8keyz6grp/JLjh
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Thu, Dec 30, 2004 at 11:23:07PM -0000, Stephen Schembri wrote:
> By default the timeout value is supposed to be 60 according to io.c, but
> in loadparam.c it is stating a value of 0 - is this statement correct?

The comment in io.c says that the default select() timeout is 60 secs,
which is not the same as the default rsync timeout value (which is 0,
meaning that rsync doesn't timeout).

> If I declare a timeout value of "timeout=20" in the config file, the
> value is ignored and the value of 60 seconds is always used.

The attached patch should fix this.

> Hope you have a Happy New Year and most of all, keep up the excellent
> work.

Thanks!

..wayne..

--jI8keyz6grp/JLjh
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="timeout.patch"

--- clientserver.c	8 Dec 2004 17:11:15 -0000	1.134
+++ clientserver.c	31 Dec 2004 00:24:07 -0000
@@ -43,6 +43,7 @@ extern int filesfrom_fd;
 extern int remote_protocol;
 extern int protocol_version;
 extern int io_timeout;
+extern int select_timeout;
 extern int orig_umask;
 extern int no_detach;
 extern int default_af_hint;
@@ -476,8 +477,11 @@ static int rsync_module(int f_in, int f_
 		exit_cleanup(RERR_UNSUPPORTED);
 	}
 
-	if (lp_timeout(i))
+	if (lp_timeout(i)) {
 		io_timeout = lp_timeout(i);
+		if (io_timeout && io_timeout < select_timeout)
+			select_timeout = io_timeout;
+	}
 
 	start_server(f_in, f_out, argc, argp);
 

--jI8keyz6grp/JLjh
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-- 
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
--jI8keyz6grp/JLjh--

-- 
Rob Browning
rlb @defaultvalue.org and @debian.org
GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4

Thread: