[ https://issues.apache.org/jira/browse/HDFS-525?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12748471#action_12748471 ]
Chris Douglas commented on HDFS-525: ------------------------------------ ThreadLocalDateFormat and SimpleDateFormat are not related types. It's an odd pattern because the ThreadLocalDateFormat serves no purpose; it's a wrapper for a wrapper. As in the attached patch, there aren't many places where changes are required. > 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.