hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Suresh Srinivas (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HDFS-525) ListPathsServlet.java uses static SimpleDateFormat that has threading issues
Date Thu, 27 Aug 2009 07:06:59 GMT

    [ https://issues.apache.org/jira/browse/HDFS-525?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12748283#action_12748283

Suresh Srinivas commented on HDFS-525:

I am not sure what you mean by odd pattern. The advantage clearly is to be able to replace
the existing SimpleDateFormat with ThreadLocalDateFormat, without having to add all the code
related to making a thread local SimpleDateFormat in every place.

> ListPathsServlet.java uses static SimpleDateFormat that has threading issues
> ----------------------------------------------------------------------------
>                 Key: HDFS-525
>                 URL: https://issues.apache.org/jira/browse/HDFS-525
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: name-node
>            Reporter: Suresh Srinivas
>            Assignee: Suresh Srinivas
>             Fix For: 0.20.1, 0.21.0
>         Attachments: HDFS-525.1.patch, HDFS-525.2.patch, HDFS-525.patch, HDFS-525.patch,
HDFS-525.rel20.patch, HDFS.525-3.patch
> SimpleDateFormat is not thread safe. Multiple threads accessing the servlet can cause
threading issues

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message