[SPARK-3571] Spark standalone cluster mode doesn't work.

I think, this issue is caused by #1106
Yeah, I noticed and wrote same code.
(2014/09/18 6:31), andrewor14 wrote:
>
> In core/src/main/scala/org/apache/spark/deploy/master/Master.scala:
>
> >      for (driver <- waitingDrivers.toList) { // iterate over a copy of waitingDrivers
> >        // We assign workers to each waiting driver in a round-robin fashion. For each driver, we
> >        // start from the last worker that was assigned a driver, and continue onwards until we have
> >        // explored all alive workers.
> > -      curPos = (curPos + 1) % aliveWorkerNum
> > -      val startPos = curPos
>
> This is what I mean: 
> andrewor14@apache:master...andrewor14:fix-standalone-cluster 
> <https://github.com/andrewor14/spark/compare/apache:master...andrewor14:fix-standalone-cluster>
>
> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/apache/spark/pull/2436/files#r17695766>.
>