You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Deepak Jaiswal (JIRA)" <ji...@apache.org> on 2019/02/05 08:39:00 UTC
[jira] [Created] (HIVE-21214) MoveTask : Use attemptId instead of
file size for deduplication of files compareTempOrDuplicateFiles()
Deepak Jaiswal created HIVE-21214:
-------------------------------------
Summary: MoveTask : Use attemptId instead of file size for deduplication of files compareTempOrDuplicateFiles()
Key: HIVE-21214
URL: https://issues.apache.org/jira/browse/HIVE-21214
Project: Hive
Issue Type: Bug
Reporter: Deepak Jaiswal
Assignee: Deepak Jaiswal
For a given task, if there is more than one attempt then deduplication logic kicks in.
{noformat}
Utilities.compareTempOrDuplicateFiles(){noformat}
The logic uses file size and picks the one with largest size. This logic is very fragile.
ideally, it should pick the successful attempt's file.
However, a simpler solution is to pick the newest attempt and also checking the file size for the newest attempt is the largest.
If not, throw an exception.
cc [~gopalv] [~thejas] [~jdere] [~ekoifman]
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)