From oak-issues-return-64032-archive-asf-public=cust-asf.ponee.io@jackrabbit.apache.org Tue Aug 7 15:58:05 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id D11F51807A1 for ; Tue, 7 Aug 2018 15:58:04 +0200 (CEST) Received: (qmail 12212 invoked by uid 500); 7 Aug 2018 13:58:04 -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 12174 invoked by uid 99); 7 Aug 2018 13:58:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Aug 2018 13:58:03 +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 633991A2C76 for ; Tue, 7 Aug 2018 13:58:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.301 X-Spam-Level: X-Spam-Status: No, score=-110.301 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id nf5YJ4BB8Pmi for ; Tue, 7 Aug 2018 13:58:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 3308D5F4DA for ; Tue, 7 Aug 2018 13:58:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 574C6E2633 for ; Tue, 7 Aug 2018 13:58:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 80C2223FAA for ; Tue, 7 Aug 2018 13:58:00 +0000 (UTC) Date: Tue, 7 Aug 2018 13:58:00 +0000 (UTC) From: "Vikas Saurabh (JIRA)" To: oak-issues@jackrabbit.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (OAK-7686) Partial migration doesn't update Lucene indexing data 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-7686?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D165716= 90#comment-16571690 ]=20 Vikas Saurabh commented on OAK-7686: ------------------------------------ [~tmueller], I think both title and log message are correct in their own co= ntexts. I haven't checked in code, but as [~tomek.rekawek] mentioned that p= artial migration of content doesn't seem to be registering {{LuceneIndexPro= vider}} and hence the system doesn't know what to do with content getting i= ngested while there's no one which can update index data for {{type=3D"luce= ne"}} indexes... thus resulting in setting {{reindex=3Dtrue}} for those ind= exes (as there's no other way to index data which got ingested while LIP wa= s missing. That said, I think there's probably a bit more to the issue that it seems o= n the surface. "lucene" indexes are "async", so, they get called to be upda= ted only due to {{AsyncIndexUpdate}} - which doesn't seem to be the case fr= om logs in description (thread name is {{main}} ). The only other thing is = that maybe, {{IndexUpdate}} is calling into these indexes for "nrt" and "sy= nc" updates and since LIP is missing, it is getting confused that it should= set "reindex=3Dtrue". While, all that is hypothesis, I think it's quite reasonable. If that reall= y turns out to be the case, I think the fix for the issue should be to remo= ve {{IndexUpdate}} confusion over {{async=3D"sync,async"}} or {{async=3D"nr= t,async"}}. We can probably "want" that maybe we can configure LIP and schedule AsyncIn= dexUpdate runs - but imo that's solving a separate concern (update async in= dexes during side-grade). > Partial migration doesn't update Lucene indexing data > ----------------------------------------------------- > > Key: OAK-7686 > URL: https://issues.apache.org/jira/browse/OAK-7686 > Project: Jackrabbit Oak > Issue Type: Bug > Components: upgrade > Reporter: Tomek R=C4=99kawek > Priority: Major > Fix For: 1.10 > > > It seems that the LuceneIndexProvider is missing in the RepositorySidegra= de index provider list. As a result, for the partial migration, the lucene = indexing data is not updated for the copied content: > {noformat} > 25.07.2018 00:19:47.008 [main] *WARN* org.apache.jackrabbit.oak.plugins.= index.IndexUpdate - Missing index provider of type [lucene], requesting rei= ndex on [/oak:index/slingeventJob] > 25.07.2018 00:19:47.580 [main] *WARN* org.apache.jackrabbit.oak.plugins.= index.IndexUpdate - Missing index provider of type [lucene], requesting rei= ndex on [/oak:index/ntBaseLucene] > {noformat} -- This message was sent by Atlassian JIRA (v7.6.3#76005)