[WIP][SPARK-2947] DAGScheduler resubmit the stage into an infinite loop

@mateiz 
There is no  cancel running tasks in the stage . When any one of the running  tasks which throws an exception.
The following code will be repeated.

```scala
failedStages += failedStage
failedStages += mapStage
```
Stage will be unnecessary resubmit by `resubmitFailedStages`