lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (JIRA)" <>
Subject [jira] Updated: (LUCENE-2943) ICU collator thread-safety issues
Date Mon, 28 Feb 2011 20:45:36 GMT


Robert Muir updated LUCENE-2943:

    Attachment: LUCENE-2943.patch

Here's a patch for trunk (including fix to the deprecated 3.x filter).

We should fix this bug in 3.x too.

> ICU collator thread-safety issues
> ---------------------------------
>                 Key: LUCENE-2943
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Analysis
>            Reporter: Robert Muir
>             Fix For: 3.1, 4.0
>         Attachments: LUCENE-2943.patch
> The ICU Collators (unlike the JDK ones) aren't thread safe:
, a little non-obvious since its not mentioned
> in the javadocs, and its not clear if the docs apply to only the C code, but i looked
> at the source and there is all kinds of internal state.
> So in my opinion, we should clone the icu collators (which are passed in from the outside)

> when creating a new TokenStream/AttributeImpl to prevent problems. This shouldn't be
a big
> deal since everything uses reusableTokenStream anyway.

This message is automatically generated by JIRA.
For more information on JIRA, see:


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

View raw message