lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <>
Subject [jira] [Commented] (LUCENE-6745) RAMInputStream.clone is not thread safe
Date Tue, 18 Aug 2015 20:45:46 GMT


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:
>             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
> 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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message