Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 53009 invoked from network); 2 Nov 2009 01:15:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Nov 2009 01:15:14 -0000 Received: (qmail 15280 invoked by uid 500); 2 Nov 2009 01:15:13 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 15202 invoked by uid 500); 2 Nov 2009 01:15:13 -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 15192 invoked by uid 99); 2 Nov 2009 01:15:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Nov 2009 01:15:13 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of skippy.hammond@gmail.com designates 209.85.210.176 as permitted sender) Received: from [209.85.210.176] (HELO mail-yx0-f176.google.com) (209.85.210.176) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Nov 2009 01:15:10 +0000 Received: by yxe6 with SMTP id 6so4504806yxe.13 for ; Sun, 01 Nov 2009 17:14:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=eUQjOfBFgyRbpDao59BglAlAx3FVcae7KjdljHKA+cw=; b=poLAE7XkhmOus6FlXj2U9g4fEMLm9SxtuTF2MdTPBF64m78EHKViJ9RWq6qoVZ5M+k NeWlXHf1dpn5tU/i2+ShDyfG6XWVwhO1X0k1qEQEHVGTF2tI5A4Ebzynap85neSUc84f F4iruQI3q6hwwjj3x4NaAJ8uZo1QV7VeJ+XlE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; b=o9CwX3kOYZf40nTSkvjwJhog90jYZWSZ2s8O9Bd4nE+z+EoMel5p0bqKsu5PIz/ABc wXXAhTRm5IuF+QFqcTRr76Lde1mOht1DauQ0x649Z1yXlb8STHLxUt58zXeHv3y/iHdf ArrbDEU4KNKePcWjwR9mBQ9NM4xB6mGU3yQ9U= Received: by 10.90.13.39 with SMTP id 39mr8309973agm.53.1257124489308; Sun, 01 Nov 2009 17:14:49 -0800 (PST) Received: from ?192.168.0.9? (ppp118-209-125-28.lns20.mel4.internode.on.net [118.209.125.28]) by mx.google.com with ESMTPS id 20sm2326199yxe.2.2009.11.01.17.14.47 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 01 Nov 2009 17:14:48 -0800 (PST) Message-ID: <4AEE3260.3040600@gmail.com> Date: Mon, 02 Nov 2009 12:14:08 +1100 From: Mark Hammond Reply-To: mhammond@skippinet.com.au User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.4pre) Gecko/20090915 Thunderbird/3.0b4 MIME-Version: 1.0 To: dev@couchdb.apache.org Subject: Re: Anyone using couchdb on windows for real?? I'm considering. References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit On 1/11/2009 1:55 AM, Juhani R�nkimies wrote: > I searched windows related issues from jira and I'm worried about two of them: > > https://issues.apache.org/jira/browse/COUCHDB-86 ( compaction doesn't work ) > https://issues.apache.org/jira/browse/COUCHDB-222 ( fsync problem ) > > The compaction issue resolution is "Don't Fix", and it refers to > discussion on issue 67 (unicode chars in db names) for a solution. I > need the compaction from the start and I got it to work with the > attached dirty fix. That'll do for now, but I'd like to understand how > 67 will solve the problem. This is all fairly vague, but IIUC the general idea was that issue 67 would provide a level of indirection between the DB name and the actual file name, primarily to support database names which are invalid file-system names. Then this general support could possibly be leveraged so that whenever a database needs to be rolled over, instead of trying to replace it directly on the file-system (which fails on Windows), we just update the "pointer" to use a new name, serving all new requests from that db and deleting the old database once everything has caught up and released the old DB. Also, my mailer isn't showing the "dirty fix" attachment - could you please resend it (either to me personally or via the list)? > The fsync issue worries me because I don't exactly undestand it's > implications. It'd be great if someone would elaborate. I'm not 100% sure, but I *think* the issue was that file:sync() on erlang under windows used to be a noop - eg, see: http://www.erlang.org/pipermail/erlang-questions/2007-March/025485.html But following the lead from that post, I see in R13B01 the source for that impl is now: efile_fsync(errInfo, fd) Efile_error* errInfo; /* Where to return error codes. */ int fd; /* File descriptor for file to sync. */ { if (!FlushFileBuffers((HANDLE) fd)) { return check_error(-1, errInfo); ... Which looks to me like it is no longer of concern. Cheers, Mark