Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-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 03B9D4048 for ; Mon, 23 May 2011 12:39:49 +0000 (UTC) Received: (qmail 52581 invoked by uid 500); 23 May 2011 12:39:47 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 52530 invoked by uid 500); 23 May 2011 12:39:47 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 52523 invoked by uid 99); 23 May 2011 12:39:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 May 2011 12:39:47 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of serera@gmail.com designates 74.125.82.48 as permitted sender) Received: from [74.125.82.48] (HELO mail-ww0-f48.google.com) (74.125.82.48) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 May 2011 12:39:40 +0000 Received: by wwi18 with SMTP id 18so4141561wwi.5 for ; Mon, 23 May 2011 05:39:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=wIfC5rln52U2UqxTDKoBYg4iftBJWctNzt6QdrQvOVs=; b=WOyID19cB26BQMATmeXIxPXs7gjvPSp09heMIKOBfx0E9SHnxEtQ4wViC0jwIla4Sj RvrJjsJWMt1ZntF3iuG8gmcLVzLTqy0jVgE94ZkiiJhxyR4M2SBoHel2EIKacawgh5z3 Ycp4ofv9hW8NVidjWkt53BZlqSDTh7ofAneX8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=CeGLcYiqhYRTw2iK8cRz8q4ShxijfWO13BrsGmgA+iBaTAJrySvI7XkdsNADO5EQCZ BYGAJwuJHnJtVYglb5UvdYgdKxAUUrP9DKY1aFp8ScpV6VZFtxrJaVWGLnW+eqArv171 ZuXnb0JRIERgYm3tL+OzOdV3Z4tzkOefVXiRk= MIME-Version: 1.0 Received: by 10.216.235.95 with SMTP id t73mr2185395weq.10.1306154359936; Mon, 23 May 2011 05:39:19 -0700 (PDT) Received: by 10.216.137.130 with HTTP; Mon, 23 May 2011 05:39:19 -0700 (PDT) Date: Mon, 23 May 2011 15:39:19 +0300 Message-ID: Subject: shared doc stores and IW.addIndexes From: Shai Erera To: dev@lucene.apache.org Content-Type: multipart/alternative; boundary=0015176f1a64a556f304a3f0c292 X-Virus-Checked: Checked by ClamAV on apache.org --0015176f1a64a556f304a3f0c292 Content-Type: text/plain; charset=ISO-8859-1 Hi If I remember correctly, we no longer share doc stores (starting 3.1.0). While working on LUCENE-3126 I was thinking that perhaps addIndexes does not work well, or at least can be improved in that area. Today, if you add an index (e.g. created with 2.9/3.0) and some segments share doc stores, they will still share the doc stores after copy. However, what if you use a merge policy, e.g. TieredMP, which assumes it can merge segments out-of-order? Will it work w/ shared doc-stores? How does the rest of the code work w/ segments that share doc stores? I assume that since we support index-format backwards, then the code works well. So maybe this isn't a bug. However, shouldn't we untie the doc stores, even if it means copying the DS to each segment, in IW.addIndexes? Shai --0015176f1a64a556f304a3f0c292 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi

If I remember correctly, we no longer share doc = stores (starting 3.1.0). While working on LUCENE-3126 I was thinking that p= erhaps addIndexes does not work well, or at least can be improved in that a= rea.

Today, if you add an index (e.g. created with 2.9/3.0) and some segment= s share doc stores, they will still share the doc stores after copy. Howeve= r, what if you use a merge policy, e.g. TieredMP, which assumes it can merg= e segments out-of-order? Will it work w/ shared doc-stores? How does the re= st of the code work w/ segments that share doc stores?

I assume that since we support index-format backwards, then the code wo= rks well. So maybe this isn't a bug. However, shouldn't we untie th= e doc stores, even if it means copying the DS to each segment, in IW.addInd= exes?

Shai
--0015176f1a64a556f304a3f0c292--