MAPREDUCE-7520 testCombineFileInputFormat is overly constrained and can sometimes fail #8010
+59
−122
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of PR
MAPREDUCE-7520
The Hadoop documentation states that the number of paths per split in CombineFileInputFormat is not fixed and can vary.
This means that the number of paths in a split is determined by the block placement and the configuration settings, leading to potential variations in the number of paths per split.
This causes the test to sometimes fail depending on the split. As such, the test could be reworked to avoid strictly testing for the number of paths in each split.
This patch relaxes the assumptions by removing checks on number of paths per split and order per split (not guaranteed anywhere), focusing on whether the files exist
For code changes:
LICENSE
,LICENSE-binary
,NOTICE-binary
files?