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

DateTools.stringToDate() can cause lock contention under load

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.3.2
    • 3.1, 4.0-ALPHA
    • core/search
    • None
    • 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
          12 kB
          Uwe Schindler
        2. LUCENE-1472.patch
          8 kB
          Uwe Schindler

        Activity

          People

            uschindler Uwe Schindler
            marklassau Mark Lassau
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: