Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 47798 invoked from network); 20 Jul 2007 08:38:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Jul 2007 08:38:15 -0000 Received: (qmail 97723 invoked by uid 500); 20 Jul 2007 08:37:42 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 97436 invoked by uid 500); 20 Jul 2007 08:37:41 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 97427 invoked by uid 99); 20 Jul 2007 08:37:41 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jul 2007 01:37:41 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of the.mindstorm.mailinglist@gmail.com designates 209.85.146.177 as permitted sender) Received: from [209.85.146.177] (HELO wa-out-1112.google.com) (209.85.146.177) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jul 2007 01:37:38 -0700 Received: by wa-out-1112.google.com with SMTP id m34so1183461wag for ; Fri, 20 Jul 2007 01:37:18 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=gABLxzXJCcgYq0zj+Dw4CXEKFCjGs738RlZ+5QwYTOA93qk2rPU32+pQkAv/Iev32AodLcPI55p8gfUtoU72zepsKlUIme1IvWvuL1w2P2y2E7R4+VaBHYrc8RQ6IQzuuW2Wtuk3RPE5YDhgPMMBzq2eH8tHri+hZEAMdWWazA8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=iNTMrbCm4d9518uSHJ0uwmYt/E8Oi4bFqCOQFYIcFlmHz5lbZACaoYV2s+Vg39JIvIVzeIzRliPSAn2PEMLQsK3of+/B2y6gn8gzRDj3A43gdOlRsq7R13hXIfymbDQ/BIsHuMkipHsFSKRPlBdgaac/rzSc6JRN1J3RJUY3H4w= Received: by 10.114.92.2 with SMTP id p2mr241513wab.1184920638108; Fri, 20 Jul 2007 01:37:18 -0700 (PDT) Received: by 10.114.150.12 with HTTP; Fri, 20 Jul 2007 01:37:17 -0700 (PDT) Message-ID: Date: Fri, 20 Jul 2007 11:37:17 +0300 From: "=?UTF-8?Q?Alexandru_Popescu_=E2=98=80?=" To: users@jackrabbit.apache.org Subject: Re: Isolation level inconsistency. In-Reply-To: <46A07239.2060901@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070719233057.7B70810FB051@herse.apache.org> <46A06850.4050303@gmx.de> <46A07239.2060901@gmx.de> X-Virus-Checked: Checked by ClamAV on apache.org On 7/20/07, Julian Reschke wrote: > Alexandru Popescu ? wrote: > > I agree with both you comments here. However, I do feel that the OP > > may be right (I confess that I was not facing this situation so far, > > but this is probably because my app is a bit different). > > > > I would really appreciate if somebody would post on this thread a > > scenario in which the current behavior is proving helpful (and I have > > in mind the scenario posted here: searching for a John and getting a > > Joe instead -- frankly speaking I would be totally surprised in real > > life if I would be looking for my wife and getting somebody else > > instead :-) ). > > I don't think the current JCR behavior was specced this way because > there are uses cases needing it. It's simply a result of queries working > against the persisted state (as the workspace methods), while the > regular read messages don't. > Agreed... and this probably the root cause that makes it look like an implementation specific detail, and not as something generic enough. > I totally agree that this can cause surprising results, and the fix for > that is not to do it. That is, save the changes first, or query + read > using a separate session object. If this is not clear in the spec, let's > fix *that* first. > Yep. We should probably try to make it more strong in the spec and provide this level of information in there. At least this will guarantee that the spec offers the solution if this behavior represents a problem to the users. bests, ./alex -- .w( the_mindstorm )p. > Best regards, Julian >