Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-1472

DateTools.stringToDate() can cause lock contention under load

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3.2
    • Fix Version/s: 3.1, 4.0-ALPHA
    • Component/s: core/search
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      Load testing our application (the JIRA Issue Tracker) has shown that threads spend a lot of time blocked in DateTools.stringToDate().

      The stringToDate() method uses a singleton SimpleDateFormat object to parse the dates.
      Each call to SimpleDateFormat.parse() is synchronized because SimpleDateFormat is not thread safe.

        Attachments

        1. LUCENE-1472.patch
          8 kB
          Uwe Schindler
        2. LUCENE-1472.patch
          12 kB
          Uwe Schindler

          Activity

            People

            • Assignee:
              thetaphi Uwe Schindler
              Reporter:
              marklassau Mark Lassau
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: