You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Peter Slawski (JIRA)" <ji...@apache.org> on 2016/04/14 04:55:25 UTC
[jira] [Created] (HIVE-13512) Make initializing dag ids in TezWork
thread safe for parallel compilation
Peter Slawski created HIVE-13512:
------------------------------------
Summary: Make initializing dag ids in TezWork thread safe for parallel compilation
Key: HIVE-13512
URL: https://issues.apache.org/jira/browse/HIVE-13512
Project: Hive
Issue Type: Bug
Components: HiveServer2, Query Planning
Affects Versions: 2.0.0
Reporter: Peter Slawski
Assignee: Peter Slawski
Priority: Minor
When parallel query compilation is enabled, it is possible for concurrent running threads to create TezWork objects that have the same dag id. This is because the counter used to obtain the next dag id is not thread safe. The counter should be an AtomicInteger rather than an int.
{code:java}
private static int counter;
...
public TezWork(String queryId, Configuration conf) {
this.dagId = queryId + ":" + (++counter);
...
}
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)