Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 18657200C78 for ; Thu, 4 May 2017 00:14:25 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 16F53160BBA; Wed, 3 May 2017 22:14:25 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 35263160BB5 for ; Thu, 4 May 2017 00:14:24 +0200 (CEST) Received: (qmail 83272 invoked by uid 500); 3 May 2017 22:14:23 -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 83260 invoked by uid 99); 3 May 2017 22:14:23 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 May 2017 22:14:23 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id D0A74C1839 for ; Wed, 3 May 2017 22:14:22 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.253 X-Spam-Level: X-Spam-Status: No, score=0.253 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_SOFTFAIL=0.972, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=messagingengine.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id SasdqyTVXU6y for ; Wed, 3 May 2017 22:14:21 +0000 (UTC) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id B61115F665 for ; Wed, 3 May 2017 22:14:20 +0000 (UTC) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 05733207CA; Wed, 3 May 2017 18:14:20 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute4.internal (MEProxy); Wed, 03 May 2017 18:14:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= fm1; bh=pI+c8Ma2Dgl2wZ2ePjbWxKTOlVYzLl7Cpo8d3NmvT/Q=; b=aTX2Tp5D 0eJqBskfC5c0JkjsKPnrmME4pw2Q8LmNn3YUxvxFSAEgQ/ITG7qA+tBmErcSEWpd kNVCalfd7+KoF9DlqCaUJA6KRkTujQLu6ftttoR0gMkohyXbSj1u8/pO9I87sapO xgesshDcgZavIc+CVLGeW83mlMhBxx0R3ouX73invZHdN3IAWBGnNR25kpqFTogz A2CeWh/tbnBcH2UfHdN7n0uVdbAxucspgkxhiJLiyBdApyZHFZ31ougYCNNaOg0v US1xmKpcaPOR/Z7fQ/u/v94kYqndAPRlhX36+KYtdeG5tt/vVXv3DIF0ODOg0mRu cOToOXRMOG8hog== X-ME-Sender: X-Sasl-enc: 93MPAS6z/tLkcHuPL26JtRtxYzgRmZNifqmdQLAgTG1R 1493849659 Received: from [198.18.12.62] (unknown [217.146.29.69]) by mail.messagingengine.com (Postfix) with ESMTPA id 87E74244DA; Wed, 3 May 2017 18:14:19 -0400 (EDT) From: Robert Samuel Newson Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: Truncated response when POST a _changes query Date: Wed, 3 May 2017 23:14:17 +0100 References: <8b20bc92-ddd9-ad8c-c4d8-495e6b014daf@linux.vnet.ibm.com> <1264149608.68723.1493840543865.JavaMail.Joan@RITA> To: dev@couchdb.apache.org, Joan Touzet In-Reply-To: <1264149608.68723.1493840543865.JavaMail.Joan@RITA> Message-Id: <41386FC4-BDB5-4786-A758-F037625A8EF5@apache.org> X-Mailer: Apple Mail (2.3273) archived-at: Wed, 03 May 2017 22:14:25 -0000 Agree with Joan, the most important thing is the log files. If couchdb can send an error in the response, it will (a 413 or 404, = etc, etc). But if we've already started the response and _then_ encounter an error, = we can't send any useful information in the response, we have to close = the connection. When that happens, we log the error. You should find = that the request id you got matches something in the logs. I expect it's a function_clause or case_clause, something of that = nature, and possibly indicating an unanticipated malformed request. Logs pls. B. > On 3 May 2017, at 20:42, Joan Touzet wrote: >=20 > Hi Nasser, >=20 > Thank you for the report. >=20 > Are you running against a single node or a clustered CouchDB 2.0 > install? If clustered, how many nodes, and are they all running on > the same machine, or different machines? Have you changed any > settings in the ini files? >=20 > What sort of database do you have? Does it have any conflicted > versions in it? >=20 > Do you have any CouchDB logfiles from when the error occurs? Do any > of them show anything useful? You can set the logging level to debug > to gather additional information. >=20 > Please don't email logfiles directly to this list; you can share them > with a service like gist.github.com, pastebin.com or paste.apache.org > instead. >=20 > Finally, have you tried running against our current master rather > than the released 2.0 version? We've fixed a lot of bugs since then, > and it's possible this bug has already been resolved as the result of > an unrelated change. >=20 > -Joan >=20 > ----- Original Message ----- > From: "Nasser Ebrahim" > To: dev@couchdb.apache.org > Sent: Wednesday, 3 May, 2017 1:48:06 PM > Subject: Truncated response when POST a _changes query >=20 > Hello, > While doing the Cloudant swift test, we are getting truncated response=20= > when POST a _changes query to the CouchDB with document ID [=20 > = http://docs.co= uchdb.org/en/2.0.0/api/database/changes.html].=20 > We are getting the failure very frequent while doing the test from a=20= > swift client on Linux with couchDB 2.0 as server. We compared the TCP=20= > stream of the passing and failing case and the request is exactly the=20= > same. Hence, we believe there is something going wrong while = processing=20 > the request on the CouchDB side as we are getting the truncated = response. > Another interesting observation is that if we introduce a small delay=20= > (sleep) before writing the request body on the swift client side, the=20= > test is passing (the response from CouchDB is proper). Hence, we think=20= > this could be a timing related issue on the CouchDB side. > While doing the same Cloudant swift test from Mac OS, we are observing=20= > the failure very rarely. We believe it could be the change in timing=20= > which hide the issue similar to when we introduce the delay while=20 > testing on Linux. > The response from the CouchDB has three chunks. The first chunk is a=20= > standard text {"results=E2=80=9D:[, the second chunk is the actual = response and=20 > the last chunk is the standard stream terminator sequence. In the=20 > failing case, we are getting only the first chunk. Hence, it seems the=20= > failure occurred while processing the response on the CouchDB side. > We have taken the CouchDB trace and Wireshark trace from the server = side=20 > and we could confirm that the request is exactly the same between the=20= > passing and failing case where as the response is truncated on the=20 > CouchDB side during the failure. > Please let us know whether you are aware of any such issues on the=20 > CouchDB side and what diagnostic documents are required for you to do=20= > the analysis. > Thank you, > Nasser Ebrahim