From user-return-21788-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Wed Aug 15 19:39:24 2012 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 A9B68D80F for ; Wed, 15 Aug 2012 19:39:24 +0000 (UTC) Received: (qmail 46825 invoked by uid 500); 15 Aug 2012 19:39:22 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 46710 invoked by uid 500); 15 Aug 2012 19:39:22 -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 46702 invoked by uid 99); 15 Aug 2012 19:39:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Aug 2012 19:39:22 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FSL_RCVD_USER,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of adam.kocoloski@gmail.com designates 209.85.216.52 as permitted sender) Received: from [209.85.216.52] (HELO mail-qa0-f52.google.com) (209.85.216.52) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Aug 2012 19:39:14 +0000 Received: by qabg14 with SMTP id g14so1798247qab.11 for ; Wed, 15 Aug 2012 12:38:53 -0700 (PDT) Received: by 10.224.190.2 with SMTP id dg2mr43565272qab.29.1345059533293; Wed, 15 Aug 2012 12:38:53 -0700 (PDT) Received: from [172.16.9.17] (c-98-229-29-64.hsd1.ma.comcast.net. [98.229.29.64]) by mx.google.com with ESMTPS id gp4sm3616963qab.3.2012.08.15.12.38.50 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 15 Aug 2012 12:38:52 -0700 (PDT) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Apple Message framework v1278) Subject: Re: JavaScript 1.8.5 and Upgrades From: Adam Kocoloski In-Reply-To: Date: Wed, 15 Aug 2012 15:38:49 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <9ED9A116-1C4B-4BA2-A122-DFF4646E03AF@apache.org> References: To: user@couchdb.apache.org X-Mailer: Apple Mail (2.1278) X-Virus-Checked: Checked by ClamAV on apache.org On Aug 15, 2012, at 9:32 AM, Will Heger wrote: > After pushing some UTC Date() containing reduce code to a server, I > discovered that the server was using 1.8.0 SpiderMonkey rather than > 1.8.5, balls! >=20 > So, my impression from the docs is that CouchDB needs to be compiled > with a JavaScript engine, there is no swapping up to 1.8.5 from 1.8.0 > (but please correct this if I'm wrong, I'd much rather swap the engine > than rebuild a running couchdb). >=20 > So here's my question: What is the a typical or best practice for > performing an upgrade to CouchDb? Luckily, the server isn't a 24/7 > instance, so I have some time to take it down. But is it: >=20 > 0. doubtful, but is there a way to ugrade the SpiderMonkey in situ? > 1. Is there a upgrade process or 'upgrader' in couchdb somewhere? > 2. If not, do I backup replicate, stop, and build, and "make install" > overtop? Or... > 3. Is it option 2, but I need to eradicate the existing installation, > and if so, how does one eradicate completely couchdb (one installed > from source, IIRC)? >=20 > Apologies in advance if these are answered through Googling, but I > didn't find a succinct explanation. >=20 > And thanks in advance for any assistance. >=20 > Best regards, > -Will Hi Will, if you were so inclined you could install SM185, drop in a new = couchjs binary that links against it, do a killall to knock out any = running couchjs processes, and the server should start using your new = build of couchjs for all new requests. The core database isn't linked = to SpiderMonkey in any way. You'll lose any requests that were using a = JS process (_show/_list/_update, blocking on a _view build, etc.), but = that's about it. I probably made a hundred sysadmins spill their coffee just now, but I = thought I'd throw it out there anyway. Cheers, Adam=