Return-Path: Delivered-To: apmail-incubator-gora-dev-archive@minotaur.apache.org Received: (qmail 54388 invoked from network); 5 Nov 2010 15:04:42 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 Nov 2010 15:04:42 -0000 Received: (qmail 74247 invoked by uid 500); 5 Nov 2010 15:05:13 -0000 Delivered-To: apmail-incubator-gora-dev-archive@incubator.apache.org Received: (qmail 74216 invoked by uid 500); 5 Nov 2010 15:05:12 -0000 Mailing-List: contact gora-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: gora-dev@incubator.apache.org Delivered-To: mailing list gora-dev@incubator.apache.org Received: (qmail 74207 invoked by uid 99); 5 Nov 2010 15:05:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Nov 2010 15:05:11 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Nov 2010 15:05:09 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oA5F4ltl006887 for ; Fri, 5 Nov 2010 15:04:47 GMT Message-ID: <20214694.31831288969487471.JavaMail.jira@thor> Date: Fri, 5 Nov 2010 11:04:47 -0400 (EDT) From: "Andrzej Bialecki (JIRA)" To: gora-dev@incubator.apache.org Subject: [jira] Commented: (GORA-12) Semantics of DataStore.delete* In-Reply-To: <28516791.31591288969003559.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/GORA-12?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12928616#action_12928616 ] Andrzej Bialecki commented on GORA-12: --------------------------------------- Actually, the semantics of put() should be tightened the same way, too. > Semantics of DataStore.delete* > ------------------------------ > > Key: GORA-12 > URL: https://issues.apache.org/jira/browse/GORA-12 > Project: Gora > Issue Type: Bug > Reporter: Andrzej Bialecki > Assignee: Andrzej Bialecki > > Behavior of delete* calls in DataStore is insufficiently defined. Some unit tests in DataStoreUtil seem to indicate that after a successful call to delete the subsequent queries should not return deleted items. Other tests indicate that an additional DataStore.flush() call is needed. > If we could rely on the latter assumption this would allow for some important optimizations in the implementations of DataStore - bulk updates that are visible only after an update transaction is finished are usually much less expensive to perform than equivalent multiple item by item transactions. > Therefore I propose to strengthen the meaning of delete* calls, so that their effects are guaranteed to be visible to get/execute ONLY after a subsequent flush() call. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.