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

Removed code duplication in ShuffleBlockFetcherIterator #8514

Closed
wants to merge 2 commits into from

Conversation

eracah
Copy link
Contributor

@eracah eracah commented Aug 28, 2015

Added fetchUpToMaxBytes() to prevent having to update both code blocks when a change is made.

@andrewor14
Copy link
Contributor

ok to test.

@SparkQA
Copy link

SparkQA commented Aug 31, 2015

Test build #41840 has finished for PR 8514 at commit 6b3df94.

  • This patch fails Scala style tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@andrewor14
Copy link
Contributor

@eracah can you fix the style errors?

@eracah
Copy link
Contributor Author

eracah commented Sep 1, 2015

@andrewor14 Fixed. Tested locally with scalastyle

@SparkQA
Copy link

SparkQA commented Sep 1, 2015

Test build #41884 has finished for PR 8514 at commit f0f06dc.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@@ -315,6 +309,14 @@ final class ShuffleBlockFetcherIterator(
}
}

private def fetchUpToMaxBytes() {
Copy link
Contributor

Choose a reason for hiding this comment

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

I added Unit return type when I merged this

@andrewor14
Copy link
Contributor

Merged into master, thanks.

@asfgit asfgit closed this in f6c447f Sep 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants