You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/02/24 04:16:00 UTC

[jira] [Work logged] (HIVE-22840) Race condition in formatters of TimestampColumnVector and DateColumnVector

     [ https://issues.apache.org/jira/browse/HIVE-22840?focusedWorklogId=391500&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-391500 ]

ASF GitHub Bot logged work on HIVE-22840:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 24/Feb/20 04:15
            Start Date: 24/Feb/20 04:15
    Worklog Time Spent: 10m 
      Work Description: ShubhamChaurasia commented on pull request #922: HIVE-22840: Race condition in formatters of TimestampColumnVector and…
URL: https://github.com/apache/hive/pull/922
 
 
   … DateColumnVector
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 391500)
    Remaining Estimate: 0h
            Time Spent: 10m

> 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
>              Labels: pull-request-available
>         Attachments: HIVE-22840.1.patch, HIVE-22840.2.patch, HIVE-22840.patch
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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)