Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hive >> mail # dev >> Review Request 17377: HIVE-6309 Hive incorrectly removes TaskAttempt output files if MRAppMaster fails once


Copy link to this message
-
Review Request 17377: HIVE-6309 Hive incorrectly removes TaskAttempt output files if MRAppMaster fails once

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/17377/
-----------------------------------------------------------

Review request for hive.
Bugs: HIVE-6309
    https://issues.apache.org/jira/browse/HIVE-6309
Repository: hive-git
Description
-------

Hive incorrectly removes TaskAttempt output files if MRAppMaster fails once.
>>> re.match("^.*?([0-9]+)(_[0?-9])?(\\..*)?$", 'part-r-000000_2').group(1)
'000000'
>>> re.match("^.*?([0-9]+)(_[0?-9])?(\\..*)?$", 'part-r-000000_1001').group(1)
'1001'

And on hadoop2.2 if a MRAppMaster fails once, nextAttemptNumber would be bigger than 1000, this results in a incorrectly removing of TaskAttempt output files.
Diffs
-----

  ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java b15a230

Diff: https://reviews.apache.org/r/17377/diff/
Testing
-------
Thanks,

Chun Chen