Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix for null pointers in TaskList returned by MapReduceFSFetcherHadoop2 #203

Merged
merged 1 commit into from
Feb 9, 2017

Conversation

stiga-huang
Copy link
Contributor

For MapReduce jobs with succeeded status but containing failed tasks (by setting mapreduce.map.failures.maxpercent to non zero), MapReduceFSFetcherHadoop2 will construct a task list with null pointers. This PR fixes this bug and adds a unit test to distinguish it.

(1) Use ArrayList instead
(2) Add unit test for this
Copy link
Contributor

@paulbramsen paulbramsen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Good find!

@@ -142,4 +150,64 @@ public void testGetHistoryDir() {
Assert.assertNull("Failed to initialize FileSystem", e);
}
}

@Test
public void testGetTaskData() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Additional test coverage is always good.

@akshayrai
Copy link
Contributor

+1

@akshayrai akshayrai merged commit dd7a458 into linkedin:master Feb 9, 2017
skakker pushed a commit to skakker/dr-elephant that referenced this pull request Dec 14, 2017
…p2 (linkedin#203)

(1) Use ArrayList instead
(2) Add unit test for this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants