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 0C717106AD for ; Fri, 25 Oct 2013 06:25:55 +0000 (UTC) Received: (qmail 96995 invoked by uid 500); 25 Oct 2013 06:25:51 -0000 Delivered-To: apmail-clerezza-dev-archive@clerezza.apache.org Received: (qmail 96802 invoked by uid 500); 25 Oct 2013 06:25:41 -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 95936 invoked by uid 500); 25 Oct 2013 06:25:36 -0000 Delivered-To: apmail-incubator-clerezza-dev@incubator.apache.org Received: (qmail 95927 invoked by uid 99); 25 Oct 2013 06:25:36 -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 06:25:36 +0000 Date: Fri, 25 Oct 2013 06:25:36 +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] [Created] (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 Reto Bachmann-Gm=C3=BCr created CLEREZZA-834: ------------------------------------------- Summary: 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 s= light difference in the locking: LockableMGraphWrapper also locks when retu= rning and iterator and the returned iterator locks on access. Clearly a cli= ent should lock before getting and till finished using the iterator. So whi= le the Locking in LockableMGraphWrapper does not prevent the client from g= etting ConcurrentModificationException it might (not sure) prevent another = read from getting an exception while writing. -- This message was sent by Atlassian JIRA (v6.1#6144)