hadoop-hdfs-issues mailing list archives

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

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

View raw message