Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1, 4.0-ALPHA
    • Component/s: modules/analysis
    • Labels:
      None
    • Lucene Fields:
      New, Patch Available

      Description

      The ICU Collators (unlike the JDK ones) aren't thread safe: http://userguide.icu-project.org/collation/architecture , 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.

      1. LUCENE-2943.patch
        9 kB
        Robert Muir
      2. LUCENE-2943.patch
        3 kB
        Robert Muir
      3. LUCENE-2943.patch
        2 kB
        Robert Muir

        Activity

        Robert Muir created issue -
        Robert Muir made changes -
        Field Original Value New Value
        Attachment LUCENE-2943.patch [ 12472224 ]
        Robert Muir made changes -
        Attachment LUCENE-2943.patch [ 12472244 ]
        Robert Muir made changes -
        Attachment LUCENE-2943.patch [ 12472271 ]
        Robert Muir made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Grant Ingersoll made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Robert Muir
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development