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 07421200BCE for ; Fri, 2 Dec 2016 10:00:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 05F6D160B29; Fri, 2 Dec 2016 09:00:00 +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 75E0E160B24 for ; Fri, 2 Dec 2016 09:59:59 +0100 (CET) Received: (qmail 25312 invoked by uid 500); 2 Dec 2016 08:59:58 -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 25184 invoked by uid 99); 2 Dec 2016 08:59:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Dec 2016 08:59:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 8A8F22C0086 for ; Fri, 2 Dec 2016 08:59:58 +0000 (UTC) Date: Fri, 2 Dec 2016 08:59:58 +0000 (UTC) From: "Chetan Mehrotra (JIRA)" To: oak-issues@jackrabbit.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (OAK-5212) Avoid updating the index nodestate if no change is done in index MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 02 Dec 2016 09:00:00 -0000 Chetan Mehrotra created OAK-5212: ------------------------------------ Summary: Avoid updating the index nodestate if no change is done in index Key: OAK-5212 URL: https://issues.apache.org/jira/browse/OAK-5212 Project: Jackrabbit Oak Issue Type: Improvement Components: lucene Reporter: Chetan Mehrotra Assignee: Chetan Mehrotra Priority: Minor Fix For: 1.6 As noted in OAK-5211 directory listing was getting modified (due to reorder) even if no change happens in index. Another place where we update state post index close is at ":status" node where we store {{lastUpdated}} and {{indexedNodes}} post index close. In normal cases LuceneIndexEditor avoids initializing the IndexWriter if there is no change. However it can happen that when any node gets deleted the editor performs a delete operation. It can happen that tree being deleted is not indexed but still editor would do this as it cannot determine that easily. And in doing that IndexWriter would be initialized. Currently IndexWriter being initialized is considered same as index updated. Due to this index status nodes gets unnecessarily updated even if there is no change in index which causes the IndexTracker to reopen the index even when it has not changed. We should make this more explicit and find a way to determine if index has been updated or not -- This message was sent by Atlassian JIRA (v6.3.4#6332)