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 C8FAF200BDA for ; Tue, 13 Dec 2016 11:57:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id C7A36160B23; Tue, 13 Dec 2016 10:57: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 423D7160B15 for ; Tue, 13 Dec 2016 11:57:00 +0100 (CET) Received: (qmail 78893 invoked by uid 500); 13 Dec 2016 10:56:59 -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 78853 invoked by uid 99); 13 Dec 2016 10:56:59 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Dec 2016 10:56:59 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 2EEAC2C03DF for ; Tue, 13 Dec 2016 10:56:59 +0000 (UTC) Date: Tue, 13 Dec 2016 10:56:59 +0000 (UTC) From: "Marcel Reutegger (JIRA)" To: oak-issues@jackrabbit.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (OAK-5238) IndexCopier causes concurrent update on NodeBuilder MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 13 Dec 2016 10:57:01 -0000 [ https://issues.apache.org/jira/browse/OAK-5238?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Marcel Reutegger updated OAK-5238: ---------------------------------- Attachment: OAK-5238-1.patch Attached patch with proposed fix. It's along the lines of Chetan's idea to buffer the writes until the directory is closed. [~chetanm], can you please review? > IndexCopier causes concurrent update on NodeBuilder > --------------------------------------------------- > > Key: OAK-5238 > URL: https://issues.apache.org/jira/browse/OAK-5238 > Project: Jackrabbit Oak > Issue Type: Bug > Components: lucene > Affects Versions: 1.2.3, 1.0.15, 1.4.0 > Reporter: Marcel Reutegger > Assignee: Marcel Reutegger > Labels: candidate_oak_1_4 > Fix For: 1.6 > > Attachments: OAK-5238-1.patch, OAK-5238.patch > > > OAK-2247 introduced the copy-on-write feature for lucene index in Oak. This feature may result in a NodeBuilder updated by multiple threads concurrently. New index files are first stored on the local filesystem and then copied asynchronously into the repository. At the same time the async index update thread manipulates the node builders as well. > With MongoMK this results in unexpected conflicts and failed async index updates. -- This message was sent by Atlassian JIRA (v6.3.4#6332)