Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BD39E96BD for ; Wed, 1 Feb 2012 21:59:20 +0000 (UTC) Received: (qmail 56778 invoked by uid 500); 1 Feb 2012 21:59:20 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 56689 invoked by uid 500); 1 Feb 2012 21:59:19 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 56681 invoked by uid 99); 1 Feb 2012 21:59:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Feb 2012 21:59:19 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Feb 2012 21:59:18 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 98A59185EC5 for ; Wed, 1 Feb 2012 21:58:58 +0000 (UTC) Date: Wed, 1 Feb 2012 21:58:58 +0000 (UTC) From: "Dave Brosius (Updated) (JIRA)" To: commits@cassandra.apache.org Message-ID: <1957181581.4626.1328133538626.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1194437388.1633.1328074858532.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (CASSANDRA-3822) JdbcDate.getString(ByteBuffer) appears to not be multithreaded safe MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-3822?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dave Brosius updated CASSANDRA-3822: ------------------------------------ Attachment: use_thread_local_sdfs.diff use thread local for holding SimpleDateFormat > JdbcDate.getString(ByteBuffer) appears to not be multithreaded safe > ------------------------------------------------------------------- > > Key: CASSANDRA-3822 > URL: https://issues.apache.org/jira/browse/CASSANDRA-3822 > Project: Cassandra > Issue Type: Bug > Components: Core > Reporter: Dave Brosius > Priority: Trivial > Attachments: use_thread_local_sdfs.diff > > > 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. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira