Return-Path: X-Original-To: apmail-directory-dev-archive@www.apache.org Delivered-To: apmail-directory-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 F00079E04 for ; Sat, 24 Dec 2011 21:01:11 +0000 (UTC) Received: (qmail 87992 invoked by uid 500); 24 Dec 2011 21:01:11 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 87948 invoked by uid 500); 24 Dec 2011 21:01:11 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 87941 invoked by uid 99); 24 Dec 2011 21:01:11 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Dec 2011 21:01:11 +0000 Received: from localhost (HELO emmanuel-lecharnys-MacBook-Pro.local) (127.0.0.1) (smtp-auth username elecharny, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Dec 2011 21:01:11 +0000 Message-ID: <4EF63D8F.9060306@apache.org> Date: Sat, 24 Dec 2011 22:01:03 +0100 From: =?UTF-8?B?RW1tYW51ZWwgTMOpY2hhcm55?= Reply-To: elecharny@apache.org Organization: The Apache Software Foundation User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: Apache Directory Developers List Subject: Re: Txns & tests heads up References: <4EF5D8F7.3020603@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 12/24/11 8:33 PM, Alex Karasulu wrote: > On Sat, Dec 24, 2011 at 3:51 PM, Emmanuel Lecharnywrote: > >> Hi, >> >> I'm fixing tests in core-integ, and so far, I still have some issues in >> uathz (SearchAuthorizationIT) and in schema. All the other tests are now >> passing. >> >> I have moved the txns borders into the OperationManager, and for searches, >> the cursor commit or abort the txn in the close() and close(exception) >> methods. >> >> > Why is the OM better than the CoreSession? Just curious what made you > choose this route. Forgive me if this was discussed in an earlier email. Because there is no Bind() method in the core session, but mainly because the ServerContext SPI is calling the OpManager instead of the CoreSession. > > >> I think we should find a way to implicitely commit or abort the txns even >> if the user does not close() the cursors, otherwise it might be extremely >> painful for them. I was thinking about adding a finalaizer in the cursor to >> finish the txns, but it's not a perfect solution (as it depends on the GC >> to be executed. > > Oh please don't do this - we should be able to find a better solution I am > sure. There are a myriad of reasons why this is a bad idea IMHO. We can > discuss this once I settle down in one place .. .still traveling. It was just a random thought. Finalizer is not a good idea, as there is no way you can control when it's called. > > >> Damn I miss the C++ explicit destuctors :/). >> Something more useful would be to allow any txns to reuse an existing >> txns. > > YES this is what we need to do for re-entry but there may need to be some > configurable parameter for this. > > Maybe we can Skype on this to be fast and report back to the ML. I'll be around tomorrow. Right now, I'm trying to fix the remaining tests that are not starting a txn inside another txn. -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com