Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2868E183BE for ; Tue, 18 Aug 2015 20:45:47 +0000 (UTC) Received: (qmail 23422 invoked by uid 500); 18 Aug 2015 20:45:46 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 23359 invoked by uid 500); 18 Aug 2015 20:45:46 -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 23171 invoked by uid 99); 18 Aug 2015 20:45:46 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Aug 2015 20:45:46 +0000 Date: Tue, 18 Aug 2015 20:45:46 +0000 (UTC) From: "Michael McCandless (JIRA)" To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (LUCENE-6745) RAMInputStream.clone is not thread safe MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LUCENE-6745?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14701961#comment-14701961 ] Michael McCandless commented on LUCENE-6745: -------------------------------------------- bq. Should the test have a shotgun? BTW, I would prefer using ExecutorService for the test. I prefer to keep concurrency constructs to a minimum ... I think it's important that our tests are approachable. And the bug repros fine w/o the shotgun. > RAMInputStream.clone is not thread safe > --------------------------------------- > > Key: LUCENE-6745 > URL: https://issues.apache.org/jira/browse/LUCENE-6745 > Project: Lucene - Core > Issue Type: Bug > Reporter: Michael McCandless > Assignee: Michael McCandless > Fix For: Trunk, 5.4 > > Attachments: LUCENE-6745.patch > > > This took some time to track down ... it's the root cause of the RangeTree failures that [~steve_rowe] found at https://issues.apache.org/jira/browse/LUCENE-6697?focusedCommentId=14696999&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14696999 > The problem happens when one thread is using the original IndexInput (RAMInputStream) from a RAMDirectory, but other threads are also cloning that IndexInput at the same time. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org