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 E0DF017292 for ; Fri, 29 Jan 2016 15:10:55 +0000 (UTC) Received: (qmail 61891 invoked by uid 500); 29 Jan 2016 15:10:55 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 61839 invoked by uid 500); 29 Jan 2016 15:10:55 -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 61829 invoked by uid 99); 29 Jan 2016 15:10:55 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jan 2016 15:10:55 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 1BA711A034C for ; Fri, 29 Jan 2016 15:10:55 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.102 X-Spam-Level: X-Spam-Status: No, score=-0.102 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id jV7Ks3byrACy for ; Fri, 29 Jan 2016 15:10:54 +0000 (UTC) Received: from mail-pf0-f174.google.com (mail-pf0-f174.google.com [209.85.192.174]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 0DAF3206F5 for ; Fri, 29 Jan 2016 15:10:54 +0000 (UTC) Received: by mail-pf0-f174.google.com with SMTP id x125so43830371pfb.0 for ; Fri, 29 Jan 2016 07:10:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=C+ozyl8zdwU7ilyagLLd+euRujVSsspuaUK0Z2bSnKA=; b=IbQT35o7U91pe/RYH2iRUoaCmCNr0kUpDPvk/Y0tZXNEC3ekUN1c2kEnp3y1oZMxcx OtxNuaO+TAfa3NrVZ6BvFfXVcOsz/2lymrkylg40/UL9PAyFoHB/3v1gIlpjyla9Fiyk CrUDuDC0ymIlO0s2Cj0B2ysW6x/UjEqsbScWj++0jebxUhEJClDbbT4YIEKTgm3G5CK5 fe/os0QqKLBDQlEwvZkZ6lYaiCzeuIO41+XnzJHQQoAXc/w9J8rEF5S/d4d11Ufnku0M 7PYMiPCo1EAY5wntBg+npD2CJjaq88mWmhVa6Y4FJAzly1iHHfGdhqJG5VNan0tdN7DN SssA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=C+ozyl8zdwU7ilyagLLd+euRujVSsspuaUK0Z2bSnKA=; b=gbDTgiX1kFSlsKrCxmsX9bbouiq1XgPqq6EwuUDE89GSD042LkBhtQc2SbEL+IVM/4 YdjCNX5ndR1sG6Z0GzsMToyjtza/xOvmaEagUQP01kSzZmtFU64qTOjZZ4w89+EzhcFh MgL6AYUBx38sA5wYoDuHrCcW52l+9wDui4kswl/L5Yj/FsBufkFOV14xFORhxB6/qBAK tnIUjnhCYKBfjgNk+pgrPkeG3ytLe6kW+FDY+wZ/6gCwLba57vVpyb2Eif57iUZ1S3xV 3Uax/m0tBcz1KROl0H4pMlvkBhVlTu2FxLjwzrAfTn1SwmvKj01QGhg0zA28/AnoEaq4 vNnA== X-Gm-Message-State: AG10YOSOHy6w3mlgc1RT7ACOPhCJ18E+E8V63gzeVg8SROaSR2ja5TC+ep11wI8lAHVVGg== X-Received: by 10.98.69.93 with SMTP id s90mr13833623pfa.77.1454080253835; Fri, 29 Jan 2016 07:10:53 -0800 (PST) Received: from ?IPv6:2a01:cb04:67:a400:f9a8:9de8:496c:f2a? (2a01cb040067a400f9a89de8496c0f2a.ipv6.abo.wanadoo.fr. [2a01:cb04:67:a400:f9a8:9de8:496c:f2a]) by smtp.googlemail.com with ESMTPSA id tv6sm24317715pab.4.2016.01.29.07.10.52 for (version=TLSv1/SSLv3 cipher=OTHER); Fri, 29 Jan 2016 07:10:53 -0800 (PST) Subject: Re: Database corruption repair tool To: Apache Directory Developers List References: <56A945B8.20706@gmail.com> <56A95A63.1050104@gmail.com> <8D5F7E3237B3ED47B84CF187BB17B6661487A61C@SHSMSX103.ccr.corp.intel.com> <56AB179D.5000407@gmail.com> <8D5F7E3237B3ED47B84CF187BB17B6661487A9AB@SHSMSX103.ccr.corp.intel.com> From: =?UTF-8?Q?Emmanuel_L=c3=a9charny?= Message-ID: <56AB80F6.2070707@gmail.com> Date: Fri, 29 Jan 2016 16:10:46 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <8D5F7E3237B3ED47B84CF187BB17B6661487A9AB@SHSMSX103.ccr.corp.intel.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Le 29/01/16 15:51, Zheng, Kai a écrit : >>> I'm most certainly overdoing : the first step is to start the server, which is all but a good idea. I have to simply read the configuration instead, because this is all what I need. > You mean it doesn't have to use or start a server to run the repair process, right. Right. We just need to know where to find the data, and which index are to be recreated. This is described in the configuration partition. We also have to know about the schema, thus be able to read it. > If so it sounds good, because purely running a repair tool against the database would be easy to use. Later it can also be a healthy check tool. Ideally, we should be able to start the server in repair mode. This is what we do when we define a new index : you don't have to create the index files, it's done at startup (actually, this is automatic, we see that an index table is missing, and we create it). That makes me thing that a repair mode would be much simpler than starting the server with a 'repair' parameter : it's enough to delete all the indexes, they will be recreated at startup !!! (Actually, t won't work simply because we recreate the user index, not the system indexes, but the idea is brillant : we just have to check the system index and rebuild them if missing... I'll do that this week-end !) Thanks Kai : you again proved that discussing a pb is the best way to see a better way to deal with it :-)