Uploaded image for project: 'Apache Cassandra'
  1. Apache Cassandra
  2. CASSANDRA-3822

JdbcDate.getString(ByteBuffer) appears to not be multithreaded safe

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • None
    • None
    • None
    • Low

    Description

      JdbcDate.getString(ByteBuffer) makes use of a static SimpleDateFormat

      static final SimpleDateFormat FORMATTER = new SimpleDateFormat(DEFAULT_FORMAT);

      SimpleDateFormat is not thread safe, as it uses a field from parent class DateFormat

      protected Calendar calendar;

      to convert dates to calendars.

      Attachments

        1. use_thread_local_sdfs.diff
          1 kB
          Dave Brosius

        Activity

          People

            dbrosius David Brosius
            dbrosius@apache.org Dave Brosius
            David Brosius
            Eric Evans
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: