Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Incompatible change, Reviewed
Description
In MROutput.commit, we need to check isCommitRequired before invoking commitTask.
Currently we did this check inside Pig:
if (fileOutput.isCommitRequired()) {
fileOutput.commit();
}
However, in some loader, output file is generated only after fileOutput.close, which is part of fileOutput.commit. The isCommitRequired check is too early. A walk around is to invoke fileOutput.close before isCommitRequired:
fileOutput.close();
if (fileOutput.isCommitRequired()) {
fileOutput.commit();
}
But we are told there is a plan to make MROutput.close private.
Attachments
Attachments
Issue Links
- is depended upon by
-
PIG-4086 Fix Orc e2e tests for tez
- Closed