[ 
https://issues.apache.org/jira/browse/HIVE-4516?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13651986#comment-13651986
 ] 

Jon Hartlaub commented on HIVE-4516:
------------------------------------

I agree - HIVE-4220 may be a manifestation, although I think this ThreadLocal 
based patch or one using commons.lang FastDateFormat (which is thread-safe) 
would be preferable over the patch submitted in HIVE-4220.
                
> Fix concurrency bug in 
> serde/src/java/org/apache/hadoop/hive/serde2/io/TimestampWritable.java
> ---------------------------------------------------------------------------------------------
>
>                 Key: HIVE-4516
>                 URL: https://issues.apache.org/jira/browse/HIVE-4516
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Jon Hartlaub
>         Attachments: TimestampWritable.java.patch
>
>
> A patch for concurrent use of TimestampWritable which occurs in a 
> multithreaded scenario (as found in AmpLab Shark).  A static SimpleDateFormat 
> (not ThreadSafe) is used by TimestampWritable in CTAS DDL statements where it 
> manifests as data corruption when used in a concurrent environment.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to