Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 40277 invoked from network); 7 Sep 2008 22:31:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Sep 2008 22:31:07 -0000 Received: (qmail 45874 invoked by uid 500); 7 Sep 2008 22:31:04 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 45822 invoked by uid 500); 7 Sep 2008 22:31:04 -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 45811 invoked by uid 99); 7 Sep 2008 22:31:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Sep 2008 15:31:04 -0700 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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Sep 2008 22:30:14 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2B5BA234C1C7 for ; Sun, 7 Sep 2008 15:30:46 -0700 (PDT) Message-ID: <2015114344.1220826646176.JavaMail.jira@brutus> Date: Sun, 7 Sep 2008 15:30:46 -0700 (PDT) From: "Alex Karasulu (JIRA)" To: dev@directory.apache.org Subject: [jira] Updated: (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-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 ] Alex Karasulu updated DIRSERVER-1173: ------------------------------------- Fix Version/s: (was: 1.5.4) 1.5.5 Postponing. > 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: Alex Karasulu > Fix For: 1.5.5 > > > 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.