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 30A188617 for ; Tue, 16 Aug 2011 20:28:52 +0000 (UTC) Received: (qmail 93901 invoked by uid 500); 16 Aug 2011 20:28:51 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 93432 invoked by uid 500); 16 Aug 2011 20:28:51 -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 93407 invoked by uid 99); 16 Aug 2011 20:28:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Aug 2011 20:28:51 +0000 X-ASF-Spam-Status: No, hits=-2001.1 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Aug 2011 20:28:48 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 753E3BFA6D for ; Tue, 16 Aug 2011 20:28:27 +0000 (UTC) Date: Tue, 16 Aug 2011 20:28:27 +0000 (UTC) From: "Stefan Seelmann (JIRA)" To: dev@directory.apache.org Message-ID: <145476852.42470.1313526507476.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (DIRSERVER-1642) Unexpected behaviour in JdbmIndex 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 Unexpected behaviour in JdbmIndex --------------------------------- Key: DIRSERVER-1642 URL: https://issues.apache.org/jira/browse/DIRSERVER-1642 Project: Directory ApacheDS Issue Type: Bug Reporter: Stefan Seelmann During my experiments and tests of removing one-level and sub-level indices at least one integration test "SearchAuthorizationIT" failed (the test fails recursivelyDelete()). A debugging session showed that the follwing: - in recursivelyDelete() multiple search requests are done which leads to multiple open cursors in the XDBM search engine - an entry is deleted - when the open cursors are advanced wrong/unexpected entries are returned I was able to create a small test that shows the problem: - the index contains six tuples: (a,1) (b,2) (c,3) (d,4) (e,5) (f,6) - a cursor over the index is created and advanced two times, the expected tuples (a,1) and (b,2) were returned - now tuple (c,3) is deleted - when the cursor is advanced again the tuple (b,2) is returned again! I had expected (d,4). Note that this doesn't happen with AvlIndex. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira