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 2EDE590FE for ; Wed, 11 Apr 2012 13:05:07 +0000 (UTC) Received: (qmail 63255 invoked by uid 500); 11 Apr 2012 13:05:06 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 63142 invoked by uid 500); 11 Apr 2012 13:05:06 -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 63135 invoked by uid 99); 11 Apr 2012 13:05:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Apr 2012 13:05:05 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of elecharny@gmail.com designates 209.85.214.50 as permitted sender) Received: from [209.85.214.50] (HELO mail-bk0-f50.google.com) (209.85.214.50) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Apr 2012 13:04:58 +0000 Received: by bkuw11 with SMTP id w11so922994bku.37 for ; Wed, 11 Apr 2012 06:04:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:reply-to:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=mKW5iDesvvmpdLvQwoA+y5lSyyCcxatL/Q5m9LIguxQ=; b=jzEfxSjUL5Ol5ViHAU1ea4yGvKjAsBu7vECdsHv2CKBtuBHaICbJXu+XOh4BG4WM/g dnCCku81t1+viEYaDNKk6DwPwLIQ12Aor8Xe4zaKgEeVm1WIdhC59fyIRv2yKC2hMdNe OwTQQpnYxs6/88s5uW9qN3ss5+lK5WbxAqZ75Ll4xbIpBBXxJJfo7+Z0FlEGxchvNIGv 2BZRScsAGoEJJCj1Qle1iaeRCuvR4vqUV3cfVPOXJCPNczO1RIN1/jV7NfiP0of6UJel ehYsuUe/MskqyGAFoBDWloZxJ65E0it054soSEYHuGHCQn5OfMoXeevAcgMPbKzaJcPR aQnA== Received: by 10.204.157.12 with SMTP id z12mr5910706bkw.135.1334149477891; Wed, 11 Apr 2012 06:04:37 -0700 (PDT) Received: from Emmanuels-MacBook-Pro.local (lon92-10-78-226-4-211.fbx.proxad.net. [78.226.4.211]) by mx.google.com with ESMTPS id jd11sm4788251bkc.4.2012.04.11.06.04.36 (version=SSLv3 cipher=OTHER); Wed, 11 Apr 2012 06:04:36 -0700 (PDT) Message-ID: <4F858163.2000804@gmail.com> Date: Wed, 11 Apr 2012 15:04:35 +0200 From: =?UTF-8?B?RW1tYW51ZWwgTMOpY2hhcm55?= Reply-To: elecharny@apache.org User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 MIME-Version: 1.0 To: Apache Directory Developers List Subject: [index] OneLevelIndex removal Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi guys ! so I completely removed the OneLevelIndex from the server. The branch (index) has been successfully merged back into trunk, and I will now work on removing the SublevelIndex from the index branch. In the process, I spent 3 days closing all the cursors that weren't closed after having been used. This was *BORING*. In the future, I would really appreciate if those who use the cursors double check that they have closed them. To do that, I added some logs in every cursor constructor and every close() method, and matched the opens with the closes. Do'nt ask me if this was fun to match them... I created a small program which was able to do that for me, but this is not enough to know that a cursor has been created but not closed, we also have to know where it has been created. I think we should add some mechanism in the server to check that automatically, to avoid doing it by hand (there are hundreds of tests to check...). One solution would be to keep a track of every cursor construction in a HashMap, and to remove them when the cursor is closed. The remaining cursors are likely not closed. The pb is that it gives no clue about where those cursors have been created, unless we associate a stackTrace to this information. Really not possible in production, but we might add an extended request to activate this mode, or a flag in the config. If anyone has a better idea ? Thanks ! -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com