Return-Path: X-Original-To: apmail-clerezza-dev-archive@www.apache.org Delivered-To: apmail-clerezza-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 3F428100EA for ; Fri, 25 Oct 2013 13:14:35 +0000 (UTC) Received: (qmail 83002 invoked by uid 500); 25 Oct 2013 13:14:34 -0000 Delivered-To: apmail-clerezza-dev-archive@clerezza.apache.org Received: (qmail 82409 invoked by uid 500); 25 Oct 2013 13:14:33 -0000 Mailing-List: contact dev-help@clerezza.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@clerezza.apache.org Delivered-To: mailing list dev@clerezza.apache.org Received: (qmail 81129 invoked by uid 500); 25 Oct 2013 13:14:32 -0000 Delivered-To: apmail-incubator-clerezza-dev@incubator.apache.org Received: (qmail 80587 invoked by uid 99); 25 Oct 2013 13:14:31 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Oct 2013 13:14:31 +0000 Date: Fri, 25 Oct 2013 13:14:31 +0000 (UTC) From: =?utf-8?Q?Reto_Bachmann-Gm=C3=BCr_=28JIRA=29?= To: clerezza-dev@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CLEREZZA-834) Align LockableMGraphWrapper and DataSetLockedMGraph MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLEREZZA-834?page=3Dcom.atlass= ian.jira.plugin.system.issuetabpanels:all-tabpanel ] Reto Bachmann-Gm=C3=BCr resolved CLEREZZA-834. ----------------------------------------- Resolution: Fixed > Align LockableMGraphWrapper and DataSetLockedMGraph > --------------------------------------------------- > > Key: CLEREZZA-834 > URL: https://issues.apache.org/jira/browse/CLEREZZA-834 > Project: Clerezza > Issue Type: Improvement > Reporter: Reto Bachmann-Gm=C3=BCr > Assignee: Reto Bachmann-Gm=C3=BCr > > One hand its about removing code duplication on the other hand there is a= slight difference in the locking: LockableMGraphWrapper also locks when re= turning and iterator and the returned iterator locks on access. Clearly a c= lient should lock before getting and till finished using the iterator. So w= hile the Locking in LockableMGraphWrapper does not prevent the client from= getting ConcurrentModificationException it might (not sure) prevent anothe= r read from getting an exception while writing. -- This message was sent by Atlassian JIRA (v6.1#6144)