From dev-return-18143-apmail-couchdb-dev-archive=couchdb.apache.org@couchdb.apache.org Fri Sep 16 18:50:40 2011 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 C670F7323 for ; Fri, 16 Sep 2011 18:50:40 +0000 (UTC) Received: (qmail 5933 invoked by uid 500); 16 Sep 2011 18:50:40 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 5886 invoked by uid 500); 16 Sep 2011 18:50:40 -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 5878 invoked by uid 99); 16 Sep 2011 18:50:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Sep 2011 18:50:40 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,NORMAL_HTTP_TO_IP,RP_MATCHES_RCVD,WEIRD_PORT 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; Fri, 16 Sep 2011 18:50:37 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id C0BC79D502 for ; Fri, 16 Sep 2011 18:50:15 +0000 (UTC) Date: Fri, 16 Sep 2011 18:50:15 +0000 (UTC) From: "Filipe Manana (JIRA)" To: dev@couchdb.apache.org Message-ID: <1860331187.35937.1316199015785.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <865016977.29732.1316067488999.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (COUCHDB-1283) Impossible to compact view groups when number of active databases > max_dbs_open 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-1283?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13106692#comment-13106692 ] Filipe Manana commented on COUCHDB-1283: ---------------------------------------- I forgot to paste it yesterday, here's the error I get when a view recompact happens with trunk: $ ./test/etap/run -v test/etap/201-view-group-shutdown.t test/etap/201-view-group-shutdown.t .. # Current time local 2011-09-16 00:10:22 # Using etap version "0.3.4" 1..17 Apache CouchDB 0.0.0 (LogLevel=info) is starting. Apache CouchDB has started. Time to relax. [info] [<0.2.0>] Apache CouchDB has started on http://127.0.0.1:58243/ # View group updated ok 1 - Spawned writer 1 ok 2 - Spawned writer 2 ok 3 - Writer 1 opened his database ok 4 - Writer 2 opened his database # View group updated ok 5 - Spawned writer 3 ok 6 - Writer 3 got {error, all_dbs_active} when opening his database ok 7 - Writer 1 still alive ok 8 - Writer 2 still alive ok 9 - Writer 3 still alive [info] [<0.179.0>] Recompacting index couch_test_view_group_shutdown _design/foo at 20001 [error] [emulator] Error in process <0.190.0> with exit value: {undef,[{couch_index_updater,update,[couch_mrview_index,{mrst,<<16 bytes>>,<0.181.0>,<<30 bytes>>,<<11 bytes>>,<<10 bytes>>,[],{[]},[{mrview,0,0,0,[<<4 bytes>>,<<4 bytes>>,<<4 bytes>>,<<4 bytes>>,<<3 bytes>>],[],<<37 bytes>>,{btree,<0.181.0>,{29679751,{20000,[]},29237352},#Fun,#Fun,#Fun,#Fun,snappy},[]}],{btree,<0.181.0>,{384486,20000,384638},#Fun,#Fun,#Fun,#Fun,snappy},20001,0,undefined,undefined,undefined,undefined,undefined,nil}]}]} =ERROR REPORT==== 16-Sep-2011::00:10:38 === Error in process <0.190.0> with exit value: {undef,[{couch_index_updater,update,[couch_mrview_index,{mrst,<<16 bytes>>,<0.181.0>,<<30 bytes>>,<<11 bytes>>,<<10 bytes>>,[],{[]},[{mrview,0,0,0,[<<4 bytes>>,<<4 bytes>>,<<4 bytes>>,<<4 bytes>>,<<3 bytes>>],[],<<37 bytes>>,{btree,<0.181.0>,{29679751,{20000,[]},29237352},#Fun,#Fun,#Fun,#Fun,snappy},[]}],{btree,<0.181.0>,{384486,20000,384638},#Fun,#Fun,#Fun,#Fun,snappy},20001,0,undefined,undefined,undefined,undefined,undefined,nil}]}]} couch_index_updater:update/2 doesn't exist, but there's a 3-arity version of it, however I'm not sure where to get the 3rd argument for it. > Impossible to compact view groups when number of active databases > max_dbs_open > -------------------------------------------------------------------------------- > > Key: COUCHDB-1283 > URL: https://issues.apache.org/jira/browse/COUCHDB-1283 > Project: CouchDB > Issue Type: Bug > Reporter: Filipe Manana > Assignee: Paul Joseph Davis > Fix For: 1.1.1, 1.2 > > Attachments: couchdb-1283_12x.patch, couchdb-1283_trunk.patch > > > Mike Leddy recently reported this issue in the users mailing list: > http://mail-archives.apache.org/mod_mbox/couchdb-user/201109.mbox/%3C1315949945.22123.22.camel@mike.loop.com.br%3E > The attached patch is the simplest solution I can think of - keeping the database open until the view compaction finishes. > The patch includes a test case. > It will need to be updated after Paul's view index refactoring (COUCHDB-1270). -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira