apache/spark — pull request #2117 by ash211 (2014-08-25 19:20:53+00:00)
Title: SPARK-3211 .take() is OOM-prone with empty partitions

Instead of jumping straight from 1 partition to all partitions, do exponential
growth and double the number of partitions to attempt each time instead.

Fix proposed by Paul Nepywoda