[
https://issues.apache.org/jira/browse/HIVE-23154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17080251#comment-17080251
]
Ashutosh Chauhan commented on HIVE-23154:
-----------------------------------------
+1
> Fix race condition in Utilities::mvFileToFinalPath
> --------------------------------------------------
>
> Key: HIVE-23154
> URL: https://issues.apache.org/jira/browse/HIVE-23154
> Project: Hive
> Issue Type: Improvement
> Components: HiveServer2
> Reporter: Rajesh Balamohan
> Priority: Major
> Attachments: HIVE-23154.1.patch, HIVE-23154.3.patch
>
>
> Utilities::mvFileToFinalPath is used for moving files from "/_tmp.-ext to
> "/-ext" folder. Tasks write data to "_tmp" . Before writing to final
> destination, they are moved to "-ext" folder. As part of it, it has checks to
> ensure that run-away task outputs are not copied to "-ext" folder.
> Currently, there is a race condition between computing the snapshot of files
> to be copied and the rename operation. Same issue persists in "insert into"
> case as well.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)