Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-985

TemplateString is not thread-safe

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.3
    • None
    • None

    Description

      TemplateString is not thread-safe but it is being used concurrently by many cores due to the static instance.

      Currently TemplateString#cache is not synchronized, and static instance of TemplateString is used by VariableResolverImpl#replaceTokens().

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            shalin Shalin Shekhar Mangar
            kuma Liu Kumai
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment