From dev-return-11843-apmail-jackrabbit-dev-archive=jackrabbit.apache.org@jackrabbit.apache.org Fri May 04 08:20:38 2007 Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 65825 invoked from network); 4 May 2007 08:20:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 May 2007 08:20:37 -0000 Received: (qmail 22862 invoked by uid 500); 4 May 2007 08:20:43 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 22637 invoked by uid 500); 4 May 2007 08:20:43 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 22628 invoked by uid 99); 4 May 2007 08:20:43 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 May 2007 01:20:43 -0700 Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 May 2007 01:20:36 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1FFB071404A for ; Fri, 4 May 2007 01:20:16 -0700 (PDT) Message-ID: <31779119.1178266816128.JavaMail.jira@brutus> Date: Fri, 4 May 2007 01:20:16 -0700 (PDT) From: "Marcel Reutegger (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Reopened: (JCR-862) unsynchronized access on 'itemCache' map in ItemManager In-Reply-To: <23946339.1177421415546.JavaMail.jira@brutus> 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/JCR-862?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Marcel Reutegger reopened JCR-862: ---------------------------------- The fix introduces a deadlock between a reader and a writer session. See attached stacktrace. > unsynchronized access on 'itemCache' map in ItemManager > -------------------------------------------------------- > > Key: JCR-862 > URL: https://issues.apache.org/jira/browse/JCR-862 > Project: Jackrabbit > Issue Type: Bug > Components: core > Affects Versions: 1.2.3 > Reporter: Tobias Bocanegra > Assigned To: Stefan Guggisberg > Fix For: 1.4 > > > the access 'itemCache' map in ItemManager is mostly synchronized by not via the ItemStateListener methods: > [...] > public void stateCreated(ItemState created) { > ItemImpl item = retrieveItem(created.getId()); > if (item != null) { > item.stateCreated(created); > } > } > [...] > private ItemImpl retrieveItem(ItemId id) { > return (ItemImpl) itemCache.get(id); > } > [...] > this can result in a corruption of a map (eg subsequent accesses may result in a endless loop). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.