Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 85064 invoked from network); 3 Feb 2010 15:59:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Feb 2010 15:59:49 -0000 Received: (qmail 5040 invoked by uid 500); 3 Feb 2010 15:59:49 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 4955 invoked by uid 500); 3 Feb 2010 15:59:49 -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 4945 invoked by uid 99); 3 Feb 2010 15:59:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Feb 2010 15:59:49 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Feb 2010 15:59:48 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id EC01D234C48C for ; Wed, 3 Feb 2010 07:59:27 -0800 (PST) Message-ID: <813441889.4371265212767959.JavaMail.jira@brutus.apache.org> Date: Wed, 3 Feb 2010 15:59:27 +0000 (UTC) From: "Paul Joseph Davis (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Commented: (COUCHDB-86) (CouchDB on Windows) compaction can not be done. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/COUCHDB-86?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12829123#action_12829123 ] Paul Joseph Davis commented on COUCHDB-86: ------------------------------------------ COUCHDB-67 is only an outline for a reasonable way to fix this. I don't think we'd need to go to all the lengths that it proposed, but I don't know much about Windows file handling other than "its different." If there are any Windows devs with Erlang experience out there, help would definitely be appreciated on this one. I for one don't even have access to a test machine to reproduce this problem. > (CouchDB on Windows) compaction can not be done. > ------------------------------------------------ > > Key: COUCHDB-86 > URL: https://issues.apache.org/jira/browse/COUCHDB-86 > Project: CouchDB > Issue Type: Bug > Components: Build System > Affects Versions: 0.8 > Environment: Windows XP, Erlang/OTP R12B-3 > Reporter: Li Zhengji > Assignee: Paul Joseph Davis > Priority: Blocker > Fix For: 1.0 > > Original Estimate: 5h > Remaining Estimate: 5h > > During compacting, rename the current DB file to a .old file is not allowed on Windows. > A possible workaround for this could be: > 1. Close current DB file (.couch); > 2. Send db_updated to update to use .compact; > 3. After 5sec, delete the .couch file; ---- This is done in a linked process, after that, this process send a message to update_loop; > 4. After received the message in update_loop, close current DB file which is a .compact file, then rename it to .couch; > 5. Finally, db_updated again to use this new .couch file. > Maybe, there would be a "pause" in service? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.