lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doron Cohen (JIRA)" <j...@apache.org>
Subject [jira] Updated: (LUCENE-940) SimpleDateFormat used in a non thread safe manner
Date Tue, 26 Jun 2007 02:54:26 GMT

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

Doron Cohen updated LUCENE-940:
-------------------------------

    Attachment: lucene-940.patch

Attached patch fixing DateFormat for parallel "doc making". 
Also fixing addDoc logging in this scenario.


> SimpleDateFormat used in a non thread safe manner
> -------------------------------------------------
>
>                 Key: LUCENE-940
>                 URL: https://issues.apache.org/jira/browse/LUCENE-940
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: contrib/benchmark
>            Reporter: Doron Cohen
>            Assignee: Doron Cohen
>            Priority: Minor
>             Fix For: 2.3
>
>         Attachments: lucene-940.patch
>
>
> As Mike pointed out in http://www.mail-archive.com/java-dev@lucene.apache.org/msg10831.html
SimpleDateFormat is not thread safe and hence DocMakers need to maintain it in a ThreadLocal.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message