Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-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 BE7699D44 for ; Tue, 25 Sep 2012 19:54:07 +0000 (UTC) Received: (qmail 83862 invoked by uid 500); 25 Sep 2012 19:54:07 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 83839 invoked by uid 500); 25 Sep 2012 19:54:07 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 83832 invoked by uid 99); 25 Sep 2012 19:54:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Sep 2012 19:54:07 +0000 Date: Wed, 26 Sep 2012 06:54:07 +1100 (NCT) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Message-ID: <39095173.124665.1348602847569.JavaMail.jiratomcat@arcas> In-Reply-To: <417499582.118637.1348520049086.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (DERBY-5937) File handle is leaked when a Slave replication is shutdown with failover=true 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/DERBY-5937?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13463152#comment-13463152 ] Knut Anders Hatlen commented on DERBY-5937: ------------------------------------------- Hi Glenn, If I understand correctly, this is what you're doing when you see the problem: 1) You have a master database that is being replicated to the slave, and you detect some kind of trouble with the master database 2) You invoke failover=true on the slave database (which completes as expected) 3) You then invoke shutdown=true on the slave database (which also completes as expected) After these steps, the slave process is still holding log1.dat open. Does that sound about right? Thanks. > File handle is leaked when a Slave replication is shutdown with failover=true > ----------------------------------------------------------------------------- > > Key: DERBY-5937 > URL: https://issues.apache.org/jira/browse/DERBY-5937 > Project: Derby > Issue Type: Bug > Components: Replication > Affects Versions: 10.8.2.2 > Environment: Windows 7 > Reporter: Glenn McGregor > > As part of our use of derby replication, we shut the slave down if we detect reachability issues with the master. Normally we shut it down, and bring it back up as a regular database in read-only mode. Then when the master can, it tries to push a fresh copy back to the slave system. However, during the failover=true shutdown on the slave, the log file ".../name/log/log1.dat" is still open. > Because of this open file, at least on Windows, it's impossible to move the database file out of the way, and to install a fresh copy from the master. -- 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