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 3784C9324 for ; Tue, 1 Nov 2011 01:33:56 +0000 (UTC) Received: (qmail 31713 invoked by uid 500); 1 Nov 2011 01:33:55 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 31663 invoked by uid 500); 1 Nov 2011 01:33:55 -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 31655 invoked by uid 99); 1 Nov 2011 01:33:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Nov 2011 01:33:55 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,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; Tue, 01 Nov 2011 01:33:53 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 276B632BADC for ; Tue, 1 Nov 2011 01:33:32 +0000 (UTC) Date: Tue, 1 Nov 2011 01:33:32 +0000 (UTC) From: "Adam Kocoloski (Commented) (JIRA)" To: dev@couchdb.apache.org Message-ID: <1362962773.43839.1320111212162.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (COUCHDB-505) Erlang code path prefers older versions of CouchDB 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-505?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13140781#comment-13140781 ] Adam Kocoloski commented on COUCHDB-505: ---------------------------------------- Enh, doubt that would go anywhere. Best practices for deploying Erlang/OTP systems these days explicitly specify the versions of applications to be loaded. > Erlang code path prefers older versions of CouchDB > -------------------------------------------------- > > Key: COUCHDB-505 > URL: https://issues.apache.org/jira/browse/COUCHDB-505 > Project: CouchDB > Issue Type: Bug > Affects Versions: 0.11 > Environment: any system where different minor versions of CouchDB have been installed to the same --prefix > Reporter: Adam Kocoloski > Assignee: Adam Kocoloski > Fix For: 1.2 > > > We're using ERL_LIBS to add PREFIX/lib/couchdb/erlang/lib to the code path on CouchDB startup. If multiple versions of CouchDB have been installed, that directory might look something like > mochiweb-r97 > ibrowse-1.5.2 > couch-0.9.0 > couch-0.10.0a > ... > In this case, we want the system to use beams from couch-0.10.0a, but apparently Erlang's code loader sorts couch-0.9.0 higher. > One solution would be to fall back to explicitly adding specific app directories to the code path using -pa. > An elegant solution would be to make sure that our app directories are named in such a way that they automatically sort correctly in the code loader. I'm not sure this is really possible, though, particularly when a user is installing development versions built from source next to released versions. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira