Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 68670 invoked from network); 28 May 2010 11:28:10 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 28 May 2010 11:28:10 -0000 Received: (qmail 81538 invoked by uid 500); 28 May 2010 11:28:09 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 81387 invoked by uid 500); 28 May 2010 11:28:07 -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 81379 invoked by uid 99); 28 May 2010 11:28:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 May 2010 11:28:06 +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, 28 May 2010 11:28:03 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o4SBRf9S008226 for ; Fri, 28 May 2010 11:27:42 GMT Message-ID: <5333835.48891275046061825.JavaMail.jira@thor> Date: Fri, 28 May 2010 07:27:41 -0400 (EDT) From: "Kiran Ayyagari (JIRA)" To: dev@directory.apache.org Subject: [jira] Assigned: (DIRSERVER-1173) Delete operation with a PersistentSearch returns the deleted entry In-Reply-To: <824263991.1210579555643.JavaMail.jira@brutus> 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/DIRSERVER-1173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kiran Ayyagari reassigned DIRSERVER-1173: ----------------------------------------- Assignee: Kiran Ayyagari (was: Alex Karasulu) > Delete operation with a PersistentSearch returns the deleted entry > ------------------------------------------------------------------ > > Key: DIRSERVER-1173 > URL: https://issues.apache.org/jira/browse/DIRSERVER-1173 > Project: Directory ApacheDS > Issue Type: Bug > Affects Versions: 1.5.2 > Reporter: Emmanuel Lecharny > Assignee: Kiran Ayyagari > Fix For: 2.0.0-RC1 > > > While debugging a failure in PersistentSearch I found that we have an inconsistant behavior when deleting entries : > testPsearchDelete : > ctx.destroySubcontext( RDN ); // RDN = "cn=Tori Amos" > ... > assertNotNull( listener.result ); // Should be null, but is not > assertEquals( RDN, listener.result.getName() ); // Contains the deleted entry... > Another test : > testPsearchAbandon : > ctx.destroySubcontext( "cn=Jack Black" ); > ... > // there seems to be a race condition here > //assertNull( listener.result ); // Has been commented as otherwise, the test would fail > ... > Note the comment... > While looking into the PersistentSearchListener code, here is what we have : > public void objectRemoved( NamingEvent evt ) > { > // send the entry back > sendEntry( evt ); > } > This sendEntry method simply return the deleted entry, and is supposed to set the PersistentSearchControl, so the test is incorrect. We should test that the Control contains the correct ChangeType > -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.