[
https://issues.apache.org/jira/browse/HIVE-29232?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
lkl reassigned HIVE-29232:
--------------------------
Assignee: lkl
> set hive.exec.parallel=true; 引发同一个sql,并行stage的map.xml文件路径重复,导致任务偶现出错
> --------------------------------------------------------------------
>
> Key: HIVE-29232
> URL: https://issues.apache.org/jira/browse/HIVE-29232
> Project: Hive
> Issue Type: Bug
> Components: Query Planning
> Affects Versions: 2.3.7, 3.1.3, 4.0.1
> Reporter: lkl
> Assignee: lkl
> Priority: Critical
> Fix For: 4.0.1
>
> Attachments: 111.png, fix-1.patch
>
>
> int pathId=10000
>
> public Path getMRTmpPath() {
> return new Path(getMRScratchDir(), MR_PREFIX + nextPathId());
> }
>
> // 这段代码在并发执行时可能出现返回值一样的情况
> private String nextPathId() {
> return Integer.toString(pathid++);
> }
--
This message was sent by Atlassian Jira
(v8.20.10#820010)