Skip to content

Conversation

@ash211
Copy link
Contributor

@ash211 ash211 commented Sep 7, 2014

No description provided.

@SparkQA
Copy link

SparkQA commented Sep 7, 2014

QA tests have started for PR 2310 at commit df9ce44.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Sep 7, 2014

QA tests have finished for PR 2310 at commit df9ce44.

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

@ash211
Copy link
Contributor Author

ash211 commented Sep 7, 2014

Failed tests seem to be Jenkins broken-ness

@pwendell
Copy link
Contributor

Jenkins, test this please.

@SparkQA
Copy link

SparkQA commented Sep 21, 2014

QA tests have started for PR 2310 at commit df9ce44.

  • This patch merges cleanly.

@pwendell
Copy link
Contributor

@ash211 this particular fix will only work for HadoopRDD but not other cases where we track input bytes read. A more general fix is pretty simple though, I think.

The way to fix this is to change the input bytes read from a Long to an AtomicLong and to incrementAndGet it whenever it is modified (currently in HadoopRDD, newHadoopRDD, and BlockManager) instead of just setting the value directly. I think that would fix the case where it's mutated multiple times in a single task.

@SparkQA
Copy link

SparkQA commented Sep 21, 2014

QA tests have finished for PR 2310 at commit df9ce44.

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

@ash211
Copy link
Contributor Author

ash211 commented Sep 22, 2014

Switched to an AtomicLong. Also needed to move instantiation of metrics outside of compute() This now works in my testing for the HadoopRDD -> CoalescedRDD pipeline like this:

sc.textFile("pom.xml").coalesce(1).count()

Ready for review

@SparkQA
Copy link

SparkQA commented Sep 22, 2014

QA tests have started for PR 2310 at commit 576483b.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Sep 22, 2014

QA tests have finished for PR 2310 at commit 576483b.

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

Copy link
Contributor

Choose a reason for hiding this comment

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

This is part of public API, could we fix the issue without change the API?

Also, it looks different than others. I'd prefer to keep the type unchanged.

@davies
Copy link
Contributor

davies commented Nov 20, 2014

@ash211 Hopefully this could be merged into 1.2, once you rebase it to master and keep the API unchanged, thanks!

@pwendell
Copy link
Contributor

@ash211 I think we can close this issue now that we have merged #3120

@asfgit asfgit closed this in e12b5b6 Jan 18, 2015
@ash211
Copy link
Contributor Author

ash211 commented Jan 19, 2015

Sounds good, I concur. Thanks!

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.

4 participants