From oak-issues-return-82280-archive-asf-public=cust-asf.ponee.io@jackrabbit.apache.org Tue Jun 1 16:32:02 2021 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mxout1-he-de.apache.org (mxout1-he-de.apache.org [95.216.194.37]) by mx-eu-01.ponee.io (Postfix) with ESMTPS id 6FDDC18067F for ; Tue, 1 Jun 2021 18:32:02 +0200 (CEST) Received: from mail.apache.org (mailroute1-lw-us.apache.org [207.244.88.153]) by mxout1-he-de.apache.org (ASF Mail Server at mxout1-he-de.apache.org) with SMTP id CD36161126 for ; Tue, 1 Jun 2021 16:32:01 +0000 (UTC) Received: (qmail 96080 invoked by uid 500); 1 Jun 2021 16:32:01 -0000 Mailing-List: contact oak-issues-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: oak-dev@jackrabbit.apache.org Delivered-To: mailing list oak-issues@jackrabbit.apache.org Received: (qmail 96021 invoked by uid 99); 1 Jun 2021 16:32:01 -0000 Received: from mailrelay1-he-de.apache.org (HELO mailrelay1-he-de.apache.org) (116.203.21.61) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jun 2021 16:32:01 +0000 Received: from jira2-he-de.apache.org (jira2-he-de.apache.org [168.119.33.54]) by mailrelay1-he-de.apache.org (ASF Mail Server at mailrelay1-he-de.apache.org) with ESMTPS id 4B3A43E8B7 for ; Tue, 1 Jun 2021 16:32:00 +0000 (UTC) Received: from jira2-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira2-he-de.apache.org (ASF Mail Server at jira2-he-de.apache.org) with ESMTP id 1C16AC80259 for ; Tue, 1 Jun 2021 16:32:00 +0000 (UTC) Date: Tue, 1 Jun 2021 16:32:00 +0000 (UTC) From: "Nitin Gupta (Jira)" To: oak-issues@jackrabbit.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (OAK-9449) Any new (elastic) index def added after Out of the band reindexing will trigger reindexing when the async cycle will run the first index update MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/OAK-9449?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:all-tabpanel ] Nitin Gupta resolved OAK-9449. ------------------------------ Fix Version/s: 1.42.0 Resolution: Fixed > Any new (elastic) index def added after Out of the band reindexing will t= rigger reindexing when the async cycle will run the first index update > -------------------------------------------------------------------------= ---------------------------------------------------------------------- > > Key: OAK-9449 > URL: https://issues.apache.org/jira/browse/OAK-9449 > Project: Jackrabbit Oak > Issue Type: Bug > Reporter: Nitin Gupta > Assignee: Nitin Gupta > Priority: Major > Fix For: 1.42.0 > > > When we will do an Out of band indexing for any elastic index , it will c= reate the remote elastic index. > And then we need to apply the index def to the node store in a separate s= tep. > =C2=A0 > However, once the oak process will observe this new change, it will trigg= er a reindex on this newly added index because of logic at=C2=A0[0]. This i= s wrong, since this reindex in not needed. > In case of a newly added lucene index, there are hidden nodes such as=C2= =A0 :data which according to the logic at=C2=A0[0]=C2=A0prevents it from ge= tting reindexed.=C2=A0 > =C2=A0 > However any newly added elastic index from Out Of the Band indexer does n= ot have any such hidden nodes (because it doesn't store the indexed data lo= cally like lucene), so it leads to reindexing. > =C2=A0 > =C2=A0 > [0]:=C2=A0[https://github.com/oak-indexing/jackrabbit-oak/blob/trunk/oak-= core/src/main/java/org/apache/jackrabbit/oak/plugins/index/IndexUpdate.java= #L235#L251] > =C2=A0 -- This message was sent by Atlassian Jira (v8.3.4#803005)