Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2431910326 for ; Tue, 4 Jun 2013 19:45:22 +0000 (UTC) Received: (qmail 89247 invoked by uid 500); 4 Jun 2013 19:45:21 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 89153 invoked by uid 500); 4 Jun 2013 19:45:21 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 89100 invoked by uid 99); 4 Jun 2013 19:45:21 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Jun 2013 19:45:21 +0000 Date: Tue, 4 Jun 2013 19:45:21 +0000 (UTC) From: "Oliver Heger (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CONFIGURATION-530) AbstractFileConfiguration.getProperty(String key) locking causes thread halt 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/CONFIGURATION-530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13675152#comment-13675152 ] Oliver Heger commented on CONFIGURATION-530: -------------------------------------------- Unfortunately, there is not yet a concrete release schedule. There are still some important points open which need to be fixed before a release. Because of all these incompatible changes (parts of the API have been completely redesigned) it certainly makes sense to get out some alpha or beta releases first to get feedback from the community. > AbstractFileConfiguration.getProperty(String key) locking causes thread halt > ---------------------------------------------------------------------------- > > Key: CONFIGURATION-530 > URL: https://issues.apache.org/jira/browse/CONFIGURATION-530 > Project: Commons Configuration > Issue Type: Bug > Components: File reloading > Affects Versions: 1.9 > Reporter: yair ogen > Priority: Critical > Fix For: 2.0 > > > Every call to getProperty causes a lock (related to the reload functionality). In a near real-time system where we have many concurrent threads this affects heavily on the application TPS. > Possible solution will be: getProperty only returns current value. Reload when needed occurs in a background thread that updates the in-memory map (perhaps by using CopyOnWrite collections?). -- 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