From oak-issues-return-69802-archive-asf-public=cust-asf.ponee.io@jackrabbit.apache.org Thu Apr 4 07:08:02 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 [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 3BA6618064C for ; Thu, 4 Apr 2019 09:08:02 +0200 (CEST) Received: (qmail 6488 invoked by uid 500); 4 Apr 2019 07:08: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 6466 invoked by uid 99); 4 Apr 2019 07:08:01 -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; Thu, 04 Apr 2019 07:08:01 +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 81889E27D4 for ; Thu, 4 Apr 2019 07:08:00 +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 2778924595 for ; Thu, 4 Apr 2019 07:08:00 +0000 (UTC) Date: Thu, 4 Apr 2019 07:08:00 +0000 (UTC) From: "Nitin Gupta (JIRA)" To: oak-issues@jackrabbit.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (OAK-8166) Index definition with orderable property definitions with and without functions breaks index 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-8166?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D168095= 77#comment-16809577 ]=20 Nitin Gupta commented on OAK-8166: ---------------------------------- [~catholicon] - yup -this does sounds better - I was mostly concerned with = missing some case here that I am not aware about . I am testing this out fo= r the scenarios you mentioned and some other that I might be able to think = of . Will update this ticket with a new patch=C2=A0 and results when I'm do= ne > Index definition with orderable property definitions with and without fun= ctions breaks index > -------------------------------------------------------------------------= ------------------- > > Key: OAK-8166 > URL: https://issues.apache.org/jira/browse/OAK-8166 > Project: Jackrabbit Oak > Issue Type: Bug > Components: indexing > Affects Versions: 1.8.12 > Reporter: Tom Blackford > Priority: Major > Attachments: OAK-8166_1.patch > > > If an index definition contains the same orderable property with and with= out functions, it will fail to index any node which contains that property.= The failure will be logged as [1]. > Steps to reproduce: > * Configure index with the two property definitions shown at [2]. > * Refresh the index definition > * Modify a node that falls under the definition - it will fail with the e= xception shown at [1] > * Modify the 'non-function' index definition to not be orderable (orderab= le=3Dfalse) > * Refresh the index definition > * Modify the same node - note there is no exception. > Thanks to [~catholicon] for assistance identifying root cause. > [1] > {code} > 25.03.2019 15:39:04.135 *WARN* [async-index-update-async] org.apache.jack= rabbit.oak.plugins.index.lucene.LuceneIndexEditor Failed to index the node = [/content/dam/Unknown-2.png] > java.lang.IllegalArgumentException: DocValuesField ":dvjcr:content/metada= ta/dc:title" appears more than once in this document (only one value is all= owed per field) > =09at org.apache.lucene.index.SortedDocValuesWriter.addValue(SortedDocVal= uesWriter.java:62) [org.apache.jackrabbit.oak-lucene:1.8.9] > =09at org.apache.lucene.index.DocValuesProcessor.addSortedField(DocValues= Processor.java:125) [org.apache.jackrabbit.oak-lucene:1.8.9] > =09at org.apache.lucene.index.DocValuesProcessor.addField(DocValuesProces= sor.java:59) [org.apache.jackrabbit.oak-lucene:1.8.9] > =09at org.apache.lucene.index.TwoStoredFieldsConsumers.addField(TwoStored= FieldsConsumers.java:36) [org.apache.jackrabbit.oak-lucene:1.8.9] > =09at org.apache.lucene.index.DocFieldProcessor.processDocument(DocFieldP= rocessor.java:236) [org.apache.jackrabbit.oak-lucene:1.8.9] > =09at org.apache.lucene.index.DocumentsWriterPerThread.updateDocument(Doc= umentsWriterPerThread.java:253) [org.apache.jackrabbit.oak-lucene:1.8.9] > =09at org.apache.lucene.index.DocumentsWriter.updateDocument(DocumentsWri= ter.java:455) [org.apache.jackrabbit.oak-lucene:1.8.9] > =09at org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java= :1534) [org.apache.jackrabbit.oak-lucene:1.8.9] > =09at org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java= :1507) [org.apache.jackrabbit.oak-lucene:1.8.9] > =09at org.apache.jackrabbit.oak.plugins.index.lucene.writer.DefaultIndexW= riter.updateDocument(DefaultIndexWriter.java:86) [org.apache.jackrabbit.oak= -lucene:1.8.9] > =09at org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexEditor.ad= dOrUpdate(LuceneIndexEditor.java:258) [org.apache.jackrabbit.oak-lucene:1.8= .9] > =09at org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexEditor.le= ave(LuceneIndexEditor.java:140) [org.apache.jackrabbit.oak-lucene:1.8.9] > =09at org.apache.jackrabbit.oak.spi.commit.CompositeEditor.leave(Composit= eEditor.java:74) [org.apache.jackrabbit.oak-store-spi:1.8.9] > {code} > [2]=20 > {code} > "dcTitle": { > "jcr:primaryType": "nt:unstructured", > "nodeScopeIndex": "true", > "useInSuggest": "true", > "ordered": "true", > "propertyIndex": "true", > "useInSpellcheck": "true", > "name": "jcr:content/metadata/dc:title", > "boost": "2.0" > }, > "dcTitleLowercase": { > "jcr:primaryType": "nt:unstructured", > "ordered": "true", > "propertyIndex": "true", > "function": "fn:lower-case(jcr:content/metadata/@dc:title)" > } > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)