You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Shubham Chaurasia (Jira)" <ji...@apache.org> on 2020/02/07 06:17:00 UTC
[jira] [Comment Edited] (HIVE-22840) Race condition in formatters
of TimestampColumnVector and DateColumnVector
[ https://issues.apache.org/jira/browse/HIVE-22840?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17032114#comment-17032114 ]
Shubham Chaurasia edited comment on HIVE-22840 at 2/7/20 6:16 AM:
------------------------------------------------------------------
HIVE-22840.1.patch / HIVE-22840.2.patch depend on CalendarUtils class introduced in HIVE-22589. For now I have just added it. I will rebase the patch once HIVE-22589 is merged.
cc [~jcamachorodriguez]
was (Author: shubhamchaurasia):
HIVE-22840.1.patch depends on CalendarUtils class introduced in HIVE-22589. For now I have just added it. I will rebase the patch once HIVE-22589 is merged.
cc [~jcamachorodriguez]
> Race condition in formatters of TimestampColumnVector and DateColumnVector
> ---------------------------------------------------------------------------
>
> Key: HIVE-22840
> URL: https://issues.apache.org/jira/browse/HIVE-22840
> Project: Hive
> Issue Type: Bug
> Components: storage-api
> Reporter: László Bodor
> Assignee: Shubham Chaurasia
> Priority: Major
> Attachments: HIVE-22840.1.patch, HIVE-22840.2.patch
>
>
> HIVE-22405 added support for proleptic calendar. It uses java's SimpleDateFormat/Calendar APIs which are not thread-safe and cause race in some scenarios.
> As a result of those race conditions, we see some exceptions like
> {code:java}
> 1) java.lang.NumberFormatException: For input string: ""
> OR
> java.lang.NumberFormatException: For input string: ".821582E.821582E44"
> OR
> 2) Caused by: java.lang.ArrayIndexOutOfBoundsException: -5325980
> at sun.util.calendar.BaseCalendar.getCalendarDateFromFixedDate(BaseCalendar.java:453)
> at java.util.GregorianCalendar.computeFields(GregorianCalendar.java:2397)
> {code}
> This issue is to address those thread-safety issues/race conditions.
> cc [~jcamachorodriguez] [~abstractdog] [~omalley]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)