Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-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 7400FDE23 for ; Wed, 10 Oct 2012 07:43:17 +0000 (UTC) Received: (qmail 50442 invoked by uid 500); 10 Oct 2012 07:43:15 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 49197 invoked by uid 500); 10 Oct 2012 07:43:05 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 49074 invoked by uid 99); 10 Oct 2012 07:43:03 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Oct 2012 07:43:03 +0000 Date: Wed, 10 Oct 2012 07:43:03 +0000 (UTC) From: "Simon Willnauer (JIRA)" To: dev@lucene.apache.org Message-ID: <1349198712.18734.1349854983085.JavaMail.jiratomcat@arcas> In-Reply-To: <1647514879.2034.1349462885024.JavaMail.jiratomcat@arcas> Subject: [jira] [Updated] (LUCENE-4462) Publishing flushed segments is single threaded and too costly 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/LUCENE-4462?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Simon Willnauer updated LUCENE-4462: ------------------------------------ Attachment: LUCENE-4462.patch here is a new patch adding back the safety forcePurge. I will commit this to trunk and let it bake in a bit before I backport. I will keep this issue open until it's ported. > Publishing flushed segments is single threaded and too costly > ------------------------------------------------------------- > > Key: LUCENE-4462 > URL: https://issues.apache.org/jira/browse/LUCENE-4462 > Project: Lucene - Core > Issue Type: Improvement > Components: core/index > Affects Versions: 4.0-ALPHA, 4.0-BETA, 4.0 > Reporter: Michael McCandless > Assignee: Simon Willnauer > Fix For: 4.1, 5.0 > > Attachments: LUCENE-4462.patch, LUCENE-4462.patch > > > Spinoff from http://lucene.markmail.org/thread/4li6bbomru35qn7w > The new TestBagOfPostings failed the build because it timed out after 2 hours ... but in digging I found that it was a starvation issue: the 4 threads were flushing segments much faster than the 1 thread could publish them. > I think this is because publishing segments (DocumentsWriter.publishFlushedSegment) is actually rather costly (creates CFS file if necessary, writes .si, etc.). > I committed a workaround for now, to prevent starvation (see svn diff -c 1394704 https://svn.apache.org/repos/asf/lucene/dev/trunk), but we really should address the root cause by moving these costly ops into flush() so that publishing is a low cost operation. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org