[ https://issues.apache.org/jira/browse/HDFS-525?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12741551#action_12741551 ]
Suresh Srinivas commented on HDFS-525: -------------------------------------- It is important to have unit test to ensure correct functionality. The only reason why I left the negative test case is to justify 30 seconds wait time for which we run multi threaded access. The first negative test that proves there is a threading issue fails in under a second. This should not add to the time of the test. BTW as Gary indicated, my intention was not to include this in under 10 minute tests. > 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 > Attachments: HDFS-525.1.patch, HDFS-525.patch, HDFS-525.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.