hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Sherman (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-19392) unsynchronized index causes DataInputByteBuffer$Buffer.read hangs
Date Fri, 22 Jun 2018 22:00:00 GMT

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

Andrew Sherman commented on HIVE-19392:
---------------------------------------

Hi [~dustinday] I think DataInputByteBuffer is not thread safe (and the parent class java.io.DataInputStream
is explicitly not thread safe) but it does not seem to be used by multiple threads. Did you
see a failure in hive/tez?

 

> unsynchronized index causes DataInputByteBuffer$Buffer.read hangs
> -----------------------------------------------------------------
>
>                 Key: HIVE-19392
>                 URL: https://issues.apache.org/jira/browse/HIVE-19392
>             Project: Hive
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 1.0.0
>            Reporter: John Doe
>            Assignee: Andrew Sherman
>            Priority: Minor
>
> In DataInputByteBuffer$Buffer class, the fields bidx and buffers, etc are unsynchronized
when used in read() and reset() function. In certain circumstances, e.g., the reset() is invoked
in a loop, the unsynchronized bidx and buffers can trigger a concurrency bug.
> This bug also shows in [Hadoop-15429|https://issues.apache.org/jira/browse/HADOOP-15429].



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message