[ 
https://issues.apache.org/jira/browse/HDFS-525?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chris Douglas updated HDFS-525:
-------------------------------

    Attachment: HDFS.525-3.patch

Sorry to be late to this issue, but a wrapper class for a ThreadLocal wrapping 
the format is a really odd pattern. What is the virtue of this approach? Why 
wouldn't one simply create ThreadLocal protecting the format in contexts where 
multiple threads may access it?

> 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.

Reply via email to