From oak-issues-return-72396-archive-asf-public=cust-asf.ponee.io@jackrabbit.apache.org Tue Jun 11 13:22:03 2019 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 [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id BCE6C180627 for ; Tue, 11 Jun 2019 15:22:02 +0200 (CEST) Received: (qmail 12115 invoked by uid 500); 11 Jun 2019 13:22:02 -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 12104 invoked by uid 99); 11 Jun 2019 13:22:02 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jun 2019 13:22:02 +0000 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 20503E2CC5 for ; Tue, 11 Jun 2019 13:22: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 38B5C2463F for ; Tue, 11 Jun 2019 13:22:00 +0000 (UTC) Date: Tue, 11 Jun 2019 13:22:00 +0000 (UTC) From: "Nitin Gupta (JIRA)" To: oak-issues@jackrabbit.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (OAK-8328) Bug in index definition can block indexing / cause indexing in a loop 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-8328?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D168610= 30#comment-16861030 ]=20 Nitin Gupta commented on OAK-8328: ---------------------------------- Update - There is a test case in oak-core failing with this patch . Will fi= x that and provide a new patch . > Bug in index definition can block indexing / cause indexing in a loop > --------------------------------------------------------------------- > > Key: OAK-8328 > URL: https://issues.apache.org/jira/browse/OAK-8328 > Project: Jackrabbit Oak > Issue Type: Bug > Components: core, lucene > Reporter: Nitin Gupta > Assignee: Thomas Mueller > Priority: Major > Attachments: OAK-8328.patch > > > If we=C2=A0 set "/oak:index/indexName/entryCount" to a Long multi-valued = property. That will cause the system to reindex in a loop... You only see t= he root cause if debug level logging is enabled. There are likely other suc= h problems. Oak should log a proper meaningful exception for config errors,= and if possible not get into this loop. It also blocks other indexes to be= updated I think. > =C2=A0 > =C2=A0 > {code:java} > 29.03.2019 11:58:55.688 *INFO* [async-index-update-async] org.apache.jack= rabbit.oak.plugins.index.IndexUpdate Reindexing will be performed for follo= wing indexes: [/oak:index/unifiedCreatedLucene] > 29.03.2019 11:59:00.691 *INFO* [async-index-update-async] org.apache.jack= rabbit.oak.plugins.index.IndexUpdate Reindexing will be performed for follo= wing indexes: [/oak:index/unifiedCreatedLucene] > 29.03.2019 11:59:05.685 *INFO* [async-index-update-async] org.apache.jack= rabbit.oak.plugins.index.IndexUpdate Reindexing will be performed for follo= wing indexes: [/oak:index/unifiedCreatedLucene] > 29.03.2019 11:59:10.687 *INFO* [async-index-update-async] org.apache.jack= rabbit.oak.plugins.index.IndexUpdate Reindexing will be performed for follo= wing indexes: [/oak:index/unifiedCreatedLucene] > 29.03.2019 11:59:15.685 *INFO* [async-index-update-async] org.apache.jack= rabbit.oak.plugins.index.IndexUpdate Reindexing will be performed for follo= wing indexes: [/oak:index/unifiedCreatedLucene] > 29.03.2019 11:59:20.688 *INFO* [async-index-update-async] org.apache.jack= rabbit.oak.plugins.index.IndexUpdate Reindexing will be performed for follo= wing indexes: [/oak:index/unifiedCreatedLucene] > 29.03.2019 12:13:50.692 *DEBUG* [async-index-update-async] org.apache.jac= krabbit.oak.plugins.index.AsyncIndexUpdate [async] The index update is stil= l failing > java.lang.IllegalStateException: null > =09at com.google.common.base.Preconditions.checkState(Preconditions.java:= 134) > =09at org.apache.jackrabbit.oak.segment.SegmentPropertyState.getValue(Seg= mentPropertyState.java:145) > =09at org.apache.jackrabbit.oak.plugins.index.lucene.IndexDefinition.(IndexDefinition.java:358) > =09at org.apache.jackrabbit.oak.plugins.index.lucene.IndexDefinition.(IndexDefinition.java:95) > =09at org.apache.jackrabbit.oak.plugins.index.lucene.IndexDefinition$Buil= der.build(IndexDefinition.java:314) > =09at org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexEditorCon= text.enableReindexMode(LuceneIndexEditorContext.java:184) > =09at org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexEditor.en= ter(LuceneIndexEditor.java:118) > =09at org.apache.jackrabbit.oak.spi.commit.ProgressNotificationEditor.ent= er(ProgressNotificationEditor.java:71) > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)