Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id E12D9200C4D for ; Wed, 5 Apr 2017 21:00:48 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id DFCE8160B9E; Wed, 5 Apr 2017 19:00:48 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 2C313160B76 for ; Wed, 5 Apr 2017 21:00:48 +0200 (CEST) Received: (qmail 24692 invoked by uid 500); 5 Apr 2017 19:00: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 24682 invoked by uid 99); 5 Apr 2017 19:00:47 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Apr 2017 19:00:47 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id B1A0E1803A6 for ; Wed, 5 Apr 2017 19:00:46 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id mDfnV6VsOjYu for ; Wed, 5 Apr 2017 19:00:46 +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 A7B4A5FC73 for ; Wed, 5 Apr 2017 19:00:45 +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 21543E0D31 for ; Wed, 5 Apr 2017 19:00:45 +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 740BE263C9 for ; Wed, 5 Apr 2017 19:00:44 +0000 (UTC) Date: Wed, 5 Apr 2017 19:00:44 +0000 (UTC) From: "Keith Laban (JIRA)" To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SOLR-10047) Mismatched Docvalue segments cause exception in Sorting/Facting; Uninvert per segment MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 05 Apr 2017 19:00:49 -0000 [ https://issues.apache.org/jira/browse/SOLR-10047?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15957449#comment-15957449 ] Keith Laban commented on SOLR-10047: ------------------------------------ - updated javadoc - renamed class to {{UninvertingDirectoryReaderPerSegmentMapping}} - added IndexReader#getReaderCacheHelper (copied note from UninvertingDirectoryReader) - removed old now unsued UninvertingDirectoryReader > Mismatched Docvalue segments cause exception in Sorting/Facting; Uninvert per segment > ------------------------------------------------------------------------------------- > > Key: SOLR-10047 > URL: https://issues.apache.org/jira/browse/SOLR-10047 > Project: Solr > Issue Type: Bug > Security Level: Public(Default Security Level. Issues are Public) > Reporter: Keith Laban > > The configuration of UninvertingReader in SolrIndexSearch creates a global mapping for the directory for fields to uninvert. If docvalues are enabled on a field the creation of a new segment will cause the query to fail when faceting/sorting on the recently docvalue enabled field. This happens because the UninvertingReader is configured globally across the entire directory, and a single segment containing DVs for a field will incorrectly indicate that all segments contain DVs. > This patch addresses the incorrect behavior by determining the fields to be uninverted on a per-segment basis. > With the fix, it is still recommended that a reindexing occur as data loss will when a DV and non-DV segment are merged, SOLR-10046 addresses this behavior. This fix is to be a stop gap for the time between enabling docvalues and the duration of a reindex. -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org