Github user srowen commented on a diff in the pull request:
https://github.com/apache/spark/pull/11060#discussion_r52003141
--- Diff: core/src/main/scala/org/apache/spark/rdd/CoalescedRDD.scala ---
@@ -273,7 +273,8 @@ private class PartitionCoalescer(maxPartitions: Int,
prev: RDD[_], balanceSlack:
groupArr += pgroup
groupHash.getOrElseUpdate(nxt_replica, ArrayBuffer()) += pgroup
var tries = 0
- while (!addPartToPGroup(nxt_part, pgroup) && tries < targetLen) { //
ensure at least one part
+ // ensure at least one part
+ while (pgroup.arr.isEmpty && !addPartToPGroup(nxt_part, pgroup) &&
tries < targetLen) {
--- End diff --
Oops thanks ignore this then
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]