Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0FE166F25 for ; Sun, 22 May 2011 18:09:31 +0000 (UTC) Received: (qmail 81591 invoked by uid 500); 22 May 2011 18:09:30 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 81559 invoked by uid 500); 22 May 2011 18:09:30 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 81551 invoked by uid 99); 22 May 2011 18:09:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 May 2011 18:09:30 +0000 X-ASF-Spam-Status: No, hits=-1996.4 required=5.0 tests=ALL_TRUSTED,FS_REPLICA,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 May 2011 18:09:28 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 5C788D7533 for ; Sun, 22 May 2011 18:08:47 +0000 (UTC) Date: Sun, 22 May 2011 18:08:47 +0000 (UTC) From: "Filipe Manana (JIRA)" To: dev@couchdb.apache.org Message-ID: <415624745.34639.1306087727374.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1091179516.33038.1305976127758.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (COUCHDB-1174) Multipart parsing bug in new replicator MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COUCHDB-1174?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Filipe Manana updated COUCHDB-1174: ----------------------------------- Attachment: couchdb-1174.patch I was finally able to reproduce this on an old macbook. It turns out the issue is that for very short multipart requests, we don't wait for the parser to recv the final boundary marker before sending an OK reply to the client, so the next request gets the boundary prepended to the HTTP verb. Before committing it, I leave here the patch for Robert to test. Robert, try to test it after revision 1126147, which is important. thanks everyone > Multipart parsing bug in new replicator > --------------------------------------- > > Key: COUCHDB-1174 > URL: https://issues.apache.org/jira/browse/COUCHDB-1174 > Project: CouchDB > Issue Type: Bug > Affects Versions: 1.2 > Reporter: Robert Newson > Priority: Blocker > Attachments: COUCHDB-1174.sh, couchdb-1174.patch > > > It seems the new multipart savvy replicator has a bug. At high load, the receiving node sees the following as the method of a new http request; > "--17481297448f5a282cc919203957ebd9--POST" > instead of just "POST". The first bit looks like a multipart boundary value to me. > I'll attach a script that reproduces the error now. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira