Solr
  1. Solr
  2. SOLR-3424

PhoneticFilterFactory threadsafety bug

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 3.6, 4.0-ALPHA
    • Fix Version/s: 4.0-ALPHA
    • Component/s: Schema and Analysis
    • Labels:
      None

      Description

      PhoneticFilterFactory has a static HashMap registry mapping an encoder name to an implementation. There is a ReentrantLock used when the map is modified (when the encoder config specifies a class name). However, this map, which can be accessed by multiple indexing threads, isn't guarded on any of the reads, which isn't just the common path but also the error messages which dump the registry into the error message.

      I realize the likelihood of a problem is extremely slim, but a bug's a bug.

        Activity

        David Smiley made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        David Smiley made changes -
        Status In Progress [ 3 ] Open [ 1 ]
        Uwe Schindler made changes -
        David Smiley made changes -
        Uwe Schindler made changes -
        Uwe Schindler made changes -
        David Smiley made changes -
        David Smiley made changes -
        David Smiley made changes -
        Field Original Value New Value
        Status Open [ 1 ] In Progress [ 3 ]
        David Smiley created issue -

          People

          • Assignee:
            David Smiley
            Reporter:
            David Smiley
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development