You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Andrew Sherman (JIRA)" <ji...@apache.org> on 2018/06/22 22:00:00 UTC
[jira] [Commented] (HIVE-19392) unsynchronized index causes
DataInputByteBuffer$Buffer.read hangs
[ 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)