Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 60967 invoked from network); 5 Feb 2010 18:51:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Feb 2010 18:51:00 -0000 Received: (qmail 59389 invoked by uid 500); 5 Feb 2010 18:50:59 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 59273 invoked by uid 500); 5 Feb 2010 18:50:58 -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 59263 invoked by uid 99); 5 Feb 2010 18:50:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Feb 2010 18:50:58 +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; Fri, 05 Feb 2010 18:50:48 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 0C04C29A0034 for ; Fri, 5 Feb 2010 10:50:28 -0800 (PST) Message-ID: <137898649.75691265395828048.JavaMail.jira@brutus.apache.org> Date: Fri, 5 Feb 2010 18:50:28 +0000 (UTC) From: =?utf-8?Q?Juhani_R=C3=A4nkimies_=28JIRA=29?= 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: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/COUCHDB-86?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1283= 0226#action_12830226 ]=20 Juhani R=C3=A4nkimies commented on COUCHDB-86: ----------------------------------------- http://github.com/juranki/couchdb/commit/e17bc9f988b2ad2e59ce1f654e0433cabd= 63e677 worked for me in light manual testing. Compaction test in the test suite did compact the database but reported fai= lure because of this error:=20 [Fri, 05 Feb 2010 18:33:24 GMT] [error] [<0.121.0>] Uncaught error in HTTP = request: {error,{badmatch,{error,badarg}}} [Fri, 05 Feb 2010 18:33:24 GMT] [info] [<0.121.0>] Stacktrace: [{couch_db,g= et_db_info,1}, {couch_httpd_db,db_req,2}, {couch_httpd_db,do_db_req,2}, {couch_httpd,handle_request,5}, {mochiweb_http,headers,5}, {proc_lib,init_p_do_apply,3}] A build with the patch can be found at http://github.com/juranki/couchdb/do= wnloads. > (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 allow= ed on Windows. > A possible workaround for this could be:=20 > 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 pro= cess, 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? --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.