Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 75568 invoked from network); 18 May 2008 19:57:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 May 2008 19:57:54 -0000 Received: (qmail 35538 invoked by uid 500); 18 May 2008 19:57:55 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 35496 invoked by uid 500); 18 May 2008 19:57:54 -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 35485 invoked by uid 99); 18 May 2008 19:57:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 May 2008 12:57:54 -0700 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=DATE_IN_PAST_03_06,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of julian.reschke@gmx.de designates 213.165.64.20 as permitted sender) Received: from [213.165.64.20] (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.29) with SMTP; Sun, 18 May 2008 19:57:07 +0000 Received: (qmail invoked by alias); 18 May 2008 19:57:20 -0000 Received: from mnsr-d9b8ceb3.pool.mediaWays.net (EHLO [217.184.206.179]) [217.184.206.179] by mail.gmx.net (mp032) with SMTP; 18 May 2008 21:57:20 +0200 X-Authenticated: #1915285 X-Provags-ID: V01U2FsdGVkX19lbAw4f1BlyFeI5DEAOQU26XLVAD7uTTA1q+pKyN Xg6xmpFnN/fvXU Message-ID: <48305B5E.2090204@gmx.de> Date: Sun, 18 May 2008 18:37:50 +0200 From: Julian Reschke User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.0.4) Gecko/20060516 Thunderbird/1.5.0.4 Mnenhy/0.7.4.666 MIME-Version: 1.0 To: dev@jackrabbit.apache.org Subject: Re: Concurrent modifications References: <480E1AAF.3050007@gmx.de> <480E1C3F.7080502@gmx.de> <481F0251.8090505@gmx.de> In-Reply-To: <481F0251.8090505@gmx.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Checked: Checked by ClamAV on apache.org OK, I saw no feedback on this. Unless there are some immediate objections, I'll thus open a ticket against JCR2SPI inability to pass the Session.refresh() call down to the SPI layer. BR, Julian Julian Reschke wrote: > OK, > > sorry for getting back to this discussion late. > > I modified the test case so that the InvalidItemStateException indeed > occurs with jackrabbit-core (see attachment). > > I think we have consensus that JSR-170 doesn't require a store to behave > like that; it's truly optional. > > Now, with the same test and with jcr2spi (connecting to jackrabbit-core > through spi2jcr) the InvalidItemStateException is *not* thrown. > > This doesn't come as a surprise, because -- as far as I understand -- > JCR2SPI lacks the necessary information to do so. > > It seems to me that the SPI APIshould *allow* stores to expose the same > behaviour as jackrabbit-core, and the simplest way to achieve that would > (IMHO) be to allow the SPI implementation to keep state. (*) > > Feedback appreciated, > > Julian > > (*) Right now, when it does keep state, we see TCK failures, as JCR's > refresh() method is not delegated to the SPI SessionInfo. I think we > need to fix that. > > >