Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 37559 invoked from network); 10 Apr 2007 15:29:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Apr 2007 15:29:58 -0000 Received: (qmail 74859 invoked by uid 500); 10 Apr 2007 15:29:59 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 74799 invoked by uid 500); 10 Apr 2007 15:29:59 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 74787 invoked by uid 99); 10 Apr 2007 15:29:59 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Apr 2007 08:29:59 -0700 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, 10 Apr 2007 08:29:52 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 653C3714071 for ; Tue, 10 Apr 2007 08:29:32 -0700 (PDT) Message-ID: <6411754.1176218972411.JavaMail.jira@brutus> Date: Tue, 10 Apr 2007 08:29:32 -0700 (PDT) From: "Emmanuel Bourg (JIRA)" To: commons-dev@jakarta.apache.org Subject: [jira] Updated: (CONFIGURATION-136) Reloading may corrupt the configuration MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CONFIGURATION-136?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Emmanuel Bourg updated CONFIGURATION-136: ----------------------------------------- Environment: (was: Operating System: other Platform: Other) Summary: Reloading may corrupt the configuration (was: [configuration] hot-reload may corrupt configuration) > Reloading may corrupt the configuration > --------------------------------------- > > Key: CONFIGURATION-136 > URL: https://issues.apache.org/jira/browse/CONFIGURATION-136 > Project: Commons Configuration > Issue Type: Bug > Affects Versions: 1.1 > Reporter: nicolas de loof > Fix For: 1.5 > > > Current reloading process clears current properties and load updated values from > resource reader. If an IO error occurs (or invalid format), the configuration > gets corrupted and the application becomes unstable. > It may be better for hot-reload to put loaded values into a temporary Properties > and replace previous values only when reloading is successful. > It may also allow to use a 'currentlty-reloading' flag in the synchronized > 'reload' block to avoid blocking threads during a reload (they could access > safelly the 'old' properties until reload is finished) -- 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: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org