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 5D6405F73 for ; Thu, 12 May 2011 09:51:39 +0000 (UTC) Received: (qmail 37248 invoked by uid 500); 12 May 2011 09:51:33 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 37203 invoked by uid 500); 12 May 2011 09:51:33 -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 37195 invoked by uid 99); 12 May 2011 09:51:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 May 2011 09:51:32 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,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; Thu, 12 May 2011 09:51:27 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 5D97D82DDA for ; Thu, 12 May 2011 09:50:47 +0000 (UTC) Date: Thu, 12 May 2011 09:50:47 +0000 (UTC) From: "Alexander Shorin (JIRA)" To: dev@couchdb.apache.org Message-ID: <1362377372.6360.1305193847379.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (COUCHDB-904) No method to detect view server VM version 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-904?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13032330#comment-13032330 ] Alexander Shorin commented on COUCHDB-904: ------------------------------------------ Yes, a little incorrect(: Ok, I'll explain more detail. Imagine that I'm developer of some view server. I'd like to create view server which covers most of CouchDB releases. Each new CouchDB release brings new features, improvements and API changes, some times backward-incompatible (as for 0.9->0.10->0.11->0.11.1) . However, I couldn't solve this task due to there is not way to know about CouchDB version and API that I have to implement. So there are three ways that I have: 1. develop only "bleeding edge" view server that support only latest version 2. make separate branch per version 3. keep "all in one" and pass version as command line argument. First one makes to forgot about old releases, second is supporting hell. Last one is more effective, but requires to keep in mind changing argument on server update. So CouchDB tells view server about his version, not view server about his. Sorry for offtopic, just thoughts about similar idea(: or may be improvement of yours: CouchDB pass "version" command to view server with additional value of his version and excepts that view server return his version back. Something like "version exchange". > No method to detect view server VM version > ------------------------------------------ > > Key: COUCHDB-904 > URL: https://issues.apache.org/jira/browse/COUCHDB-904 > Project: CouchDB > Issue Type: New Feature > Components: JavaScript View Server > Reporter: Paul Joseph Davis > Priority: Minor > Attachments: patch.txt > > > There's currently no way to tell what version of the view server is being used. Ie, the JS VM (Or Python, or Ruby, etc) that is being used. Just occurred to me it could be useful for debugging things that work one place and not another. > A proposed simple fix would be to have the view server protocol dictate that when a server boots up it spits out a line like: > {"version": OPAQUE_STRING} that gets stored in a view_server_versions section in the config or some such. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira