Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 88512 invoked from network); 5 Feb 2008 18:46:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Feb 2008 18:46:33 -0000 Received: (qmail 84075 invoked by uid 500); 5 Feb 2008 18:46:23 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 84024 invoked by uid 500); 5 Feb 2008 18:46:23 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 84013 invoked by uid 99); 5 Feb 2008 18:46:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Feb 2008 10:46:23 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Feb 2008 18:46:16 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5B0C671403C for ; Tue, 5 Feb 2008 10:46:08 -0800 (PST) Message-ID: <4929242.1202237168370.JavaMail.jira@brutus> Date: Tue, 5 Feb 2008 10:46:08 -0800 (PST) From: "Michael McCandless (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Created: (LUCENE-1164) Improve how ConcurrentMergeScheduler handles too-many-merges case MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Improve how ConcurrentMergeScheduler handles too-many-merges case ----------------------------------------------------------------- Key: LUCENE-1164 URL: https://issues.apache.org/jira/browse/LUCENE-1164 Project: Lucene - Java Issue Type: Bug Components: Index Affects Versions: 2.3 Reporter: Michael McCandless Assignee: Michael McCandless Priority: Minor Fix For: 2.4 CMS now lets you set "maxMergeThreads" to control max # simultaneous merges. However, when CMS hits that max, it still allows further merges to run, by running them in the foreground thread. So if you set this max to 1, and use 1 thread to add docs, you can get 2 merges running at once (which I think is broken). I think, instead, CMS should pause the foreground thread, waiting until the number of merge threads drops below the limit. Then, kick off the backlog merge in a thread and return control back to primary thread. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org