Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C9EF518C50 for ; Wed, 13 Jan 2016 23:05:39 +0000 (UTC) Received: (qmail 8401 invoked by uid 500); 13 Jan 2016 23:05:38 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 8328 invoked by uid 500); 13 Jan 2016 23:05:38 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 8316 invoked by uid 99); 13 Jan 2016 23:05:38 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jan 2016 23:05:38 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 8E7C81A0830 for ; Wed, 13 Jan 2016 23:05:37 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.001 X-Spam-Level: X-Spam-Status: No, score=0.001 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=messagingengine.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id TnwBmaqOpEOG for ; Wed, 13 Jan 2016 23:05:29 +0000 (UTC) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 24B4C42BA7 for ; Wed, 13 Jan 2016 23:05:29 +0000 (UTC) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id EF841219DA for ; Wed, 13 Jan 2016 18:05:28 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute4.internal (MEProxy); Wed, 13 Jan 2016 18:05:28 -0500 DKIM-Signature: v=1; a=rsa-sha1; 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-sasl-enc:x-sasl-enc; s=smtpout; bh=gTMALdl722ikp8m Hvm0p0AqOkLY=; b=tdR7/KhYRAglAmxxywo9uRXXg8I+UHVML5HdN1T5AJuMWQM qo2/vzxY7QUYuBnG5k2IbAG9rPJfDB+Gv1OztnXONAyaqzZiD01taLuNGt0CIzer QXbj+P3GnrskHSM5wEyGxYOwQrLNtkNGnpimO2h1HBISBIwkiFc4WlSKe/Bo= X-Sasl-enc: DI9Y8SYkvN9mZEwviJ3fH9HYCNDArahDGfeFVXAaP3DD 1452726328 Received: from [198.18.2.34] (unknown [217.146.29.68]) by mail.messagingengine.com (Postfix) with ESMTPA id E4AAC680141 for ; Wed, 13 Jan 2016 18:05:27 -0500 (EST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) Subject: Re: Clarifications on CouchDB "index disabling" behavior on view errors/exceptions From: Robert Samuel Newson In-Reply-To: <5696A8E9.8060905@cadensimaging.com> Date: Wed, 13 Jan 2016 23:05:26 +0000 Content-Transfer-Encoding: quoted-printable Message-Id: References: <5696A8E9.8060905@cadensimaging.com> To: user X-Mailer: Apple Mail (2.3112) Hi, Interesting find. I don=E2=80=99t believe this was ever true, the view = engine will continue to build in the face of exceptions being thrown for = every single document it encounters. B. > On 13 Jan 2016, at 19:43, Ronan Jouchet = wrote: >=20 > Hi. >=20 > The CouchDB Guide ( http://guide.couchdb.org/draft/tour.html ) = mentions that: >> when a map function fails regularly (due to a missing required field >> or other JavaScript exception), CouchDB shuts off its indexing to >> prevent any further resource usage >=20 > But neither the official doc, nor my Google-fu could provide details: >=20 > 1. Is this still true as of CouchDB 1.6.1 / 2.0alpha? >=20 > 2. Which JS errors/exceptions cause a view to be "disabled", exactly? >=20 > 2.a. In particular, just accessing a non-existent key of a `doc` = object > is not considered an error, right? It evaluates to `undefined` > faithfully to vanilla JS behavior, correct? Said differently, > `if (doc.species && doc.species =3D=3D=3D 'human')` > is equivalent to: > `if (doc.species =3D=3D=3D 'human')` , right? >=20 > 3. How can I "re-enable" a "disabled" view? >=20 > Thanks :) >=20 > --=20 > Ronan