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 6350411F42 for ; Wed, 13 Aug 2014 20:54:13 +0000 (UTC) Received: (qmail 57600 invoked by uid 500); 13 Aug 2014 20:54:12 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 57474 invoked by uid 500); 13 Aug 2014 20:54:12 -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 57164 invoked by uid 99); 13 Aug 2014 20:54:11 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Aug 2014 20:54:11 +0000 Date: Wed, 13 Aug 2014 20:54:11 +0000 (UTC) From: "Ryan Ernst (JIRA)" To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (LUCENE-5872) IndexUpgrader can leak an IndexWriter 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-5872?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ryan Ernst resolved LUCENE-5872. -------------------------------- Resolution: Not a Problem This is actually not an issue on trunk, as there was cleanup recently in {{shutdown()}} that made it resilient to exiting without actually closing. While I believe it is still possible on 4.x right now, it looks like that cleanup will be backported. So I'm closing this one. > IndexUpgrader can leak an IndexWriter > ------------------------------------- > > Key: LUCENE-5872 > URL: https://issues.apache.org/jira/browse/LUCENE-5872 > Project: Lucene - Core > Issue Type: Bug > Reporter: Ryan Ernst > > {{IndexUpgrader.upgrade()}} currently calls {{IndexWriter.shutdown()}} inside the finally block. However, if shutdown fails with an exception, the writer will not be closed. -- This message was sent by Atlassian JIRA (v6.2#6252) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org