We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55518ed commit 64e445bCopy full SHA for 64e445b
core/src/main/scala/org/apache/spark/rdd/RDD.scala
@@ -421,9 +421,7 @@ abstract class RDD[T: ClassTag](
421
// this shouldn't happen often because we use a big multiplier for the initial size
422
var numIters = 0
423
while (samples.length < num) {
424
- if (numIters > 0) {
425
- logWarning(s"Needed to re-sample due to insufficient sample size. Repeat #$numIters")
426
- }
+ logWarning(s"Needed to re-sample due to insufficient sample size. Repeat #$numIters")
427
samples = this.sample(withReplacement, fraction, rand.nextInt()).collect()
428
numIters += 1
429
}
0 commit comments