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

[SPARK-9236][Core] Make defaultPartitioner not reuse a parent RDD's partitioner if it has 0 partitions #7616

Closed
wants to merge 1 commit into from

Conversation

huitseeker
Copy link
Contributor

@srowen
Copy link
Member

srowen commented Jul 23, 2015

Seems pretty reasonable to me. CC @mateiz who might have been the last person to actually touch or write that bit of code.

@SparkQA
Copy link

SparkQA commented Jul 23, 2015

Test build #1185 has finished for PR 7616 at commit 0491307.

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

@huitseeker huitseeker changed the title [SPARK-9236] Make defaultPartitioner not reuse a parent RDD's partitioner if it has 0 partitions [SPARK-9236][Core] Make defaultPartitioner not reuse a parent RDD's partitioner if it has 0 partitions Jul 23, 2015
@mateiz
Copy link
Contributor

mateiz commented Jul 23, 2015

Looks good to me too.

@huitseeker
Copy link
Contributor Author

Cool ! I've corrected the Scala style errors, so all that's left is to kick a new build.

@SparkQA
Copy link

SparkQA commented Jul 23, 2015

Test build #1189 has finished for PR 7616 at commit 217f902.

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

@huitseeker
Copy link
Contributor Author

The test failure seems unrelated. Is the test known to be flaky ?

[info] - Naive Bayes Multinomial *** FAILED *** (128 milliseconds)
[info]   closeFit(scala.math.`package`.exp(thetaData.apply(i._2).apply(j)), scala.math.`package`.exp(model.theta.apply(i._1).apply(j)), 0.05) was false (NaiveBayesSuite.scala:115)
[info]   org.scalatest.exceptions.TestFailedException:
[info]   at org.scalatest.Assertions$class.newAssertionFailedException(Assertions.scala:500)
[info]   at org.scalatest.FunSuite.newAssertionFailedException(FunSuite.scala:1555)
[info]   at org.scalatest.Assertions$AssertionsHelper.macroAssert(Assertions.scala:466)
[info]   at org.apache.spark.mllib.classification.NaiveBayesSuite$$anonfun$validateModelFit$2$$anonfun$apply$2.apply$mcVI$sp(NaiveBayesSuite.scala:115)
[info]   at scala.collection.immutable.Range.foreach$mVc$sp(Range.scala:141)
[info]   at org.apache.spark.mllib.classification.NaiveBayesSuite$$anonfun$validateModelFit$2.apply(NaiveBayesSuite.scala:114)
[info]   at org.apache.spark.mllib.classification.NaiveBayesSuite$$anonfun$validateModelFit$2.apply(NaiveBayesSuite.scala:113)
[info]   at scala.collection.Iterator$class.foreach(Iterator.scala:727)
[info]   at scala.collection.AbstractIterator.foreach(Iterator.scala:1157)
[info]   at scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
[info]   at scala.collection.AbstractIterable.foreach(Iterable.scala:54)
[info]   at org.apache.spark.mllib.classification.NaiveBayesSuite.validateModelFit(NaiveBayesSuite.scala:113)
[info]   at org.apache.spark.mllib.classification.NaiveBayesSuite$$anonfun$7.apply$mcV$sp(NaiveBayesSuite.scala:147)
[info]   at org.apache.spark.mllib.classification.NaiveBayesSuite$$anonfun$7.apply(NaiveBayesSuite.scala:133)
[info]   at org.apache.spark.mllib.classification.NaiveBayesSuite$$anonfun$7.apply(NaiveBayesSuite.scala:133)
[info]   at org.scalatest.Transformer$$anonfun$apply$1.apply$mcV$sp(Transformer.scala:22)

@SparkQA
Copy link

SparkQA commented Jul 24, 2015

Test build #1195 has finished for PR 7616 at commit 217f902.

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

asfgit pushed a commit that referenced this pull request Jul 24, 2015
…partitioner if it has 0 partitions

See also comments on https://issues.apache.org/jira/browse/SPARK-9236

Author: François Garillot <francois@garillot.net>

Closes #7616 from huitseeker/issue/SPARK-9236 and squashes the following commits:

217f902 [François Garillot] [SPARK-9236] Make defaultPartitioner not reuse a parent RDD's partitioner if it has 0 partitions

(cherry picked from commit 6cd28cc)
Signed-off-by: Sean Owen <sowen@cloudera.com>
asfgit pushed a commit that referenced this pull request Jul 24, 2015
…partitioner if it has 0 partitions

See also comments on https://issues.apache.org/jira/browse/SPARK-9236

Author: François Garillot <francois@garillot.net>

Closes #7616 from huitseeker/issue/SPARK-9236 and squashes the following commits:

217f902 [François Garillot] [SPARK-9236] Make defaultPartitioner not reuse a parent RDD's partitioner if it has 0 partitions

(cherry picked from commit 6cd28cc)
Signed-off-by: Sean Owen <sowen@cloudera.com>
@asfgit asfgit closed this in 6cd28cc Jul 24, 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
Development

Successfully merging this pull request may close these issues.

4 participants