Fixes a nasty bug that could happen when tasks fail, because calling wait() with a timeout of 0 on a Java object means "wait forever".
Fixes a nasty bug that could happen when tasks fail, because calling
wait() with a timeout of 0 on a Java object means "wait forever".

kissmetrics/spark,publicRoman/spark,aosagie/spark,saltstar/spark,cloud-fan/spark,mzl9039/spark,poffuomo/spark,bOOm-X/spark,setjet/spark,jlopezmalla/spark,dhruve/spark,stanzhai/spark,jiangxb1987/spark,mike0sv/spark,nchammas/spark,cin/spark,skonto/spark,highfei2011/spark,WindCanDie/spark,bravo-zhang/spark,zzcclp/spark,nchammas/spark,aray/spark,MLnick/spark,dhruve/spark,sureshthalamati/spark,gengliangwang/spark,gengliangwang/spark,Aegeaner/spark,shaneknapp/spark,joseph-torres/spark,panfengfeng/spark,setjet/spark,stanzhai/spark,taroplus/spark,xflin/spark,ptkool/spark,jrshust/spark,vax11780/spark,icexelloss/spark,actuaryzhang/spark,BryanCutler/spark,chuckchen/spark,lxsmnv/spark,HyukjinKwon/spark,liyichao/spark,aokolnychyi/spark,goldmedal/spark,shubhamchopra/spark,1haodian/spark,stanzhai/spark,BryanCutler/spark,eyalfa/spark,gengliangwang/spark,szhem/spark,dbtsai/spark,guoxiaolongzte/spark,kiszk/spark,minixalpha/spark,apache/spark,ahnqirage/spark,vinodkc/spark,nchammas/spark,jianran/spark,apache/spark,aray/spark,Panos-Bletsos/spark-cost-model-optimizer,ron8hu/spark,metamx/spark,mahak/spark,goldmedal/spark,akopich/spark,mahak/spark,ddna1021/spark,ConeyLiu/spark,tengpeng/spark,ddna1021/spark,byakuinss/spark,liutang123/spark,holdenk/spark,rjpower/spark,metamx/spark,kimoonkim/spark,wangyum/spark,saltstar/spark,hvanhovell/spark,wzhfy/spark,chuckchen/spark,vax11780/spark,kissmetrics/spark,xflin/spark,ConeyLiu/spark,szhem/spark,Aegeaner/spark,goldmedal/spark,tejasapatil/spark,zuotingbing/spark,rekhajoshm/spark,lyogavin/spark,poffuomo/spark,rikima/spark,poffuomo/spark,ueshin/apache-spark,1haodian/spark,BryanCutler/spark,byakuinss/spark,mdespriee/spark,publicRoman/spark,WindCanDie/spark,andrewor14/spark,zuotingbing/spark,jianran/spark,javelinjs/spark,michalsenkyr/spark,saturday-shi/spark,andrewor14/iolap,map222/spark,publicRoman/spark,janewangfb/spark,hhbyyh/spark,cloudera/spark,panfengfeng/spark,patrick-nicholson/spark,nilsgrabbert/spark,darionyaphet/spark,wangmiao1981/spark,facaiy/spark,wangmiao1981/spark,shaneknapp/spark,aray/spark,sryza/spark,ron8hu/spark,janewangfb/spark,wzhfy/spark,MLnick/spark,milliman/spark,zero323/spark,vinodkc/spark,cloud-fan/spark,brad-kaiser/spark,ahnqirage/spark,esi-mineset/spark,JoshRosen/spark,pgandhi999/spark,nchammas/spark,aosagie/spark,vinodkc/spark,highfei2011/spark,tengpeng/spark,zzcclp/spark,liyichao/spark,lxsmnv/spark,liutang123/spark,xflin/spark,ron8hu/spark,cloud-fan/spark,LantaoJin/spark,brad-kaiser/spark,ddna1021/spark,brad-kaiser/spark,tengpeng/spark,debugger87/spark,dbtsai/spark,ueshin/apache-spark,holdenk/spark,kevinyu98/spark,sureshthalamati/spark,ddna1021/spark,rezasafi/spark,liutang123/spark,pronix/spark,janewangfb/spark,maropu/spark,shuangshuangwang/spark,darionyaphet/spark,bravo-zhang/spark,LantaoJin/spark,Panos-Bletsos/spark-cost-model-optimizer,joseph-torres/spark,LantaoJin/spark,bOOm-X/spark,hvanhovell/spark,chuckchen/spark,facaiy/spark,mzl9039/spark,hvanhovell/spark,rekhajoshm/spark,facaiy/spark,kiszk/spark,dongjoon-hyun/spark,rikima/spark,bdrillard/spark,cloud-fan/spark,sryza/spark,tengpeng/spark,metamx/spark,milliman/spark,zzcclp/spark,holdenk/spark,aokolnychyi/spark,cloudera/spark,icexelloss/spark,wangmiao1981/spark,liyichao/spark,gengliangwang/spark,debugger87/spark,mike0sv/spark,saturday-shi/spark,darionyaphet/spark,ahnqirage/spark,metamx/spark,mahak/spark,lvdongr/spark,liyichao/spark,esi-mineset/spark,szhem/spark,ddna1021/spark,huang1900/spark,vax11780/spark,JerryLead/spark,caneGuy/spark,srowen/spark,wzhfy/spark,hhbyyh/spark,dongjoon-hyun/spark,szhem/spark,mike0sv/spark,saltstar/spark,kissmetrics/spark,nlalevee/spark,shubhamchopra/spark,bravo-zhang/spark,1haodian/spark,map222/spark,big-pegasus/spark,lxsmnv/spark,cloudera/spark,rezasafi/spark,wangmiao1981/spark,mkolod/incubator-spark,cloud-fan/spark,mahak/spark,janewangfb/spark,michalsenkyr/spark,stanzhai/spark,jkbradley/spark,ron8hu/spark,tengpeng/spark,loneknightpy/spark,pgandhi999/spark,Aegeaner/spark,skonto/spark,wzhfy/spark,sureshthalamati/spark,alunarbeach/spark,sryza/spark,stanzhai/spark,akopich/spark,shuangshuangwang/spark,map222/spark,Aegeaner/spark,poffuomo/spark,adrian-ionescu/apache-spark,patrick-nicholson/spark,eyalfa/spark,darionyaphet/spark,jlopezmalla/spark,spark-test/spark,pronix/spark,mdespriee/spark,huang1900/spark,hvanhovell/spark,ioana-delaney/spark,WeichenXu123/spark,icexelloss/spark,kissmetrics/spark,nilsgrabbert/spark,joseph-torres/spark,ibm-research-ireland/sparkoscope,gioenn/xSpark,aokolnychyi/spark,shubhamchopra/spark,dongjoon-hyun/spark,SHASHANKB/spark,bdrillard/spark,xflin/spark,caneGuy/spark,patrick-nicholson/spark,taroplus/spark,actuaryzhang/spark,aokolnychyi/spark,koeninger/spark,Aegeaner/spark,someorz/spark,narahari92/spark,sachintyagi22/spark,kevinyu98/spark,zzcclp/spark,aokolnychyi/spark,sureshthalamati/spark,minixalpha/spark,metamx/spark,wangyum/spark,MLnick/spark,facaiy/spark,tejasapatil/spark,andrewor14/spark,ahnqirage/spark,SnappyDataInc/spark,1haodian/spark,nlalevee/spark,kiszk/spark,rikima/spark,publicRoman/spark,adrian-ionescu/apache-spark,saturday-shi/spark,rekhajoshm/spark,haowu80s/spark,ioana-delaney/spark,xuanyuanking/spark,SnappyDataInc/spark,shuangshuangwang/spark,cin/spark,aray/spark,ericvandenbergfb/spark,haowu80s/spark,big-pegasus/spark,SHASHANKB/spark,techaddict/spark,kissmetrics/spark,minixalpha/spark,dongjoon-hyun/spark,ueshin/apache-spark,saltstar/spark,icexelloss/spark,ConeyLiu/spark,mike0sv/spark,shuangshuangwang/spark,rikima/spark,kevinyu98/spark,goldmedal/spark,bdrillard/spark,milliman/spark,icexelloss/spark,mzl9039/spark,ron8hu/spark,JoshRosen/spark,map222/spark,publicRoman/spark,ericvandenbergfb/spark,setjet/spark,Panos-Bletsos/spark-cost-model-optimizer,JoshRosen/spark,taroplus/spark,BryanCutler/spark,narahari92/spark,ueshin/apache-spark,zuotingbing/spark,debugger87/spark,hhbyyh/spark,nlalevee/spark,caneGuy/spark,caneGuy/spark,shubhamchopra/spark,techaddict/spark,taroplus/spark,techaddict/spark,actuaryzhang/spark,liutang123/spark,ibm-research-ireland/sparkoscope,wangyum/spark,rednaxelafx/apache-spark,milliman/spark,jiangxb1987/spark,big-pegasus/spark,taroplus/spark,apache-spark-on-k8s/spark,ibm-research-ireland/sparkoscope,mkolod/incubator-spark,jlopezmalla/spark,mzl9039/spark,setjet/spark,haowu80s/spark,sahilTakiar/spark,andrewor14/spark,bOOm-X/spark,witgo/spark,apache-spark-on-k8s/spark,brad-kaiser/spark,wzhfy/spark,facaiy/spark,minixalpha/spark,ioana-delaney/spark,ibm-research-ireland/sparkoscope,zero323/spark,esi-mineset/spark,LantaoJin/spark,kiszk/spark,highfei2011/spark,ahnqirage/spark,goldmedal/spark,narahari92/spark,wangmiao1981/spark,dbtsai/spark,nlalevee/spark,bravo-zhang/spark,xuanyuanking/spark,rekhajoshm/spark,hvanhovell/spark,alunarbeach/spark,guoxiaolongzte/spark,ericvandenbergfb/spark,holdenk/spark,gengliangwang/spark,andrewor14/spark,ajaysaini725/spark,Aegeaner/spark,rednaxelafx/apache-spark,haowu80s/spark,mdespriee/spark,someorz/spark,zero323/spark,eyalfa/spark,someorz/spark,aosagie/spark,lyogavin/spark,ueshin/apache-spark,kissmetrics/spark,dongjoon-hyun/spark,big-pegasus/spark,cloud-fan/spark,WeichenXu123/spark,brad-kaiser/spark,jlopezmalla/spark,xflin/spark,shuangshuangwang/spark,kimoonkim/spark,panfengfeng/spark,nchammas/spark,chuckchen/spark,WindCanDie/spark,rekhajoshm/spark,lyogavin/spark,andrewor14/iolap,mkolod/incubator-spark,HyukjinKwon/spark,rezasafi/spark,SHASHANKB/spark,bravo-zhang/spark,highfei2011/spark,jkbradley/spark,darionyaphet/spark,sureshthalamati/spark,caneGuy/spark,rjpower/spark,akopich/spark,vinodkc/spark,srowen/spark,bOOm-X/spark,akopich/spark,dbtsai/spark,ajaysaini725/spark,rezasafi/spark,icexelloss/spark,UndeadBaneGitHub/spark,huang1900/spark,wangmiao1981/spark,rednaxelafx/apache-spark,Panos-Bletsos/spark-cost-model-optimizer,kimoonkim/spark,michalsenkyr/spark,alunarbeach/spark,zhouyejoe/spark,adrian-ionescu/apache-spark,dbtsai/spark,debugger87/spark,apache/spark,map222/spark,ueshin/apache-spark,jiangxb1987/spark,pgandhi999/spark,WindCanDie/spark,xflin/spark,gengliangwang/spark,lvdongr/spark,LantaoJin/spark,jiangxb1987/spark,taroplus/spark,HyukjinKwon/spark,saturday-shi/spark,lvdongr/spark,icexelloss/spark,sahilTakiar/spark,LantaoJin/spark,ddna1021/spark,loneknightpy/spark,esi-mineset/spark,yanboliang/spark,ioana-delaney/spark,srowen/spark,dotunolafunmiloye/spark,liyichao/spark,pronix/spark,hhbyyh/spark,ankurdave/arthur,ConeyLiu/spark,someorz/spark,guoxiaolongzte/spark,aosagie/spark,haowu80s/spark,adrian-ionescu/apache-spark,loneknightpy/spark,zzcclp/spark,hvanhovell/spark,ajaysaini725/spark,UndeadBaneGitHub/spark,HyukjinKwon/spark,goldmedal/spark,sryza/spark,apache/spark,ankurdave/arthur,michalsenkyr/spark,loneknightpy/spark,JerryLead/spark,akopich/spark,shaneknapp/spark,wangyum/spark,pronix/spark,akopich/spark,guoxiaolongzte/spark,kimoonkim/spark,maropu/spark,milliman/spark,lyogavin/spark,ddna1021/spark,zhouyejoe/spark,bdrillard/spark,publicRoman/spark,guoxiaolongzte/spark,alunarbeach/spark,mzl9039/spark,michalsenkyr/spark,aokolnychyi/spark,WeichenXu123/spark,zhouyejoe/spark,JerryLead/spark,liyichao/spark,saturday-shi/spark,big-pegasus/spark,actuaryzhang/spark,pronix/spark,zero323/spark,yanboliang/spark,zuotingbing/spark,rjpower/spark,janewangfb/spark,WeichenXu123/spark,kiszk/spark,andrewor14/spark,huang1900/spark,apache/spark,srowen/spark,yanboliang/spark,tengpeng/spark,Panos-Bletsos/spark-cost-model-optimizer,rjpower/spark,byakuinss/spark,ueshin/apache-spark,wgpshashank/spark,ericvandenbergfb/spark,lvdongr/spark,dongjoon-hyun/spark,sahilTakiar/spark,LantaoJin/spark,mdespriee/spark,maropu/spark,SnappyDataInc/spark,hhbyyh/spark,map222/spark,jkbradley/spark,gioenn/xSpark,rednaxelafx/apache-spark,andrewor14/iolap,shaneknapp/spark,ericvandenbergfb/spark,lvdongr/spark,jkbradley/spark,loneknightpy/spark,michalsenkyr/spark,andrewor14/spark,gioenn/xSpark,zhouyejoe/spark,jiangxb1987/spark,mkolod/incubator-spark,JoshRosen/spark,setjet/spark,HyukjinKwon/spark,lxsmnv/spark,ConeyLiu/spark,shuangshuangwang/spark,chuckchen/spark,SnappyDataInc/spark,gioenn/xSpark,bravo-zhang/spark,jrshust/spark,pgandhi999/spark,ptkool/spark,lvdongr/spark,JerryLead/spark,lxsmnv/spark,chuckchen/spark,wangyum/spark,UndeadBaneGitHub/spark,highfei2011/spark,jkbradley/spark,kevinyu98/spark,ioana-delaney/spark,shaneknapp/spark,yanboliang/spark,jkbradley/spark,holdenk/spark,UndeadBaneGitHub/spark,ron8hu/spark,actuaryzhang/spark,1haodian/spark,liutang123/spark,JerryLead/spark,pronix/spark,minixalpha/spark,dhruve/spark,cin/spark,metamx/spark,dbtsai/spark,nilsgrabbert/spark,kiszk/spark,apache-spark-on-k8s/spark,wzhfy/spark,brad-kaiser/spark,goldmedal/spark,sahilTakiar/spark,SnappyDataInc/spark,sachintyagi22/spark,aray/spark,huang1900/spark,wgpshashank/spark,stanzhai/spark,koeninger/spark,xuanyuanking/spark,srowen/spark,jrshust/spark,byakuinss/spark,hhbyyh/spark,SHASHANKB/spark,kimoonkim/spark,zero323/spark,nilsgrabbert/spark,ankurdave/arthur,cin/spark,nilsgrabbert/spark,liutang123/spark,yanboliang/spark,bOOm-X/spark,ajaysaini725/spark,bdrillard/spark,andrewor14/spark,spark-test/spark,debugger87/spark,kevinyu98/spark,rednaxelafx/apache-spark,michalsenkyr/spark,shubhamchopra/spark,poffuomo/spark,ericvandenbergfb/spark,yanboliang/spark,saturday-shi/spark,narahari92/spark,Panos-Bletsos/spark-cost-model-optimizer,pgandhi999/spark,gioenn/xSpark,patrick-nicholson/spark,wgpshashank/spark,andrewor14/iolap,witgo/spark,techaddict/spark,markhamstra/spark,skonto/spark,spark-test/spark,rikima/spark,someorz/spark,andrewor14/iolap,ericvandenbergfb/spark,tejasapatil/spark,apache-spark-on-k8s/spark,WeichenXu123/spark,ConeyLiu/spark,skonto/spark,1haodian/spark,sachintyagi22/spark,map222/spark,ron8hu/spark,setjet/spark,nchammas/spark,setjet/spark,byakuinss/spark,ioana-delaney/spark,highfei2011/spark,jianran/spark,ahnqirage/spark,guoxiaolongzte/spark,mdespriee/spark,janewangfb/spark,sureshthalamati/spark,adrian-ionescu/apache-spark,lvdongr/spark,holdenk/spark,spark-test/spark,joseph-torres/spark,hhbyyh/spark,jianran/spark,big-pegasus/spark,wangyum/spark,cin/spark,skonto/spark,jianran/spark,dhruve/spark,rjpower/spark,aosagie/spark,brad-kaiser/spark,rezasafi/spark,milliman/spark,jlopezmalla/spark,MLnick/spark,jiangxb1987/spark,debugger87/spark,kevinyu98/spark,tejasapatil/spark,poffuomo/spark,liutang123/spark,jrshust/spark,SnappyDataInc/spark,mzl9039/spark,aosagie/spark,actuaryzhang/spark,someorz/spark,zuotingbing/spark,guoxiaolongzte/spark,skonto/spark,eyalfa/spark,rezasafi/spark,akopich/spark,caneGuy/spark,chuckchen/spark,zhouyejoe/spark,rikima/spark,koeninger/spark,vinodkc/spark,bdrillard/spark,andrewor14/iolap,SHASHANKB/spark,BryanCutler/spark,szhem/spark,mahak/spark,xuanyuanking/spark,jrshust/spark,adrian-ionescu/apache-spark,gengliangwang/spark,vax11780/spark,ajaysaini725/spark,kimoonkim/spark,adrian-ionescu/apache-spark,mahak/spark,vax11780/spark,patrick-nicholson/spark,xflin/spark,markhamstra/spark,publicRoman/spark,nilsgrabbert/spark,cloud-fan/spark,WindCanDie/spark,vinodkc/spark,MLnick/spark,pgandhi999/spark,vinodkc/spark,saltstar/spark,JerryLead/spark,panfengfeng/spark,UndeadBaneGitHub/spark,srowen/spark,WeichenXu123/spark,panfengfeng/spark,panfengfeng/spark,saltstar/spark,lxsmnv/spark,poffuomo/spark,shubhamchopra/spark,ibm-research-ireland/sparkoscope,Aegeaner/spark,sahilTakiar/spark,SHASHANKB/spark,rednaxelafx/apache-spark,zzcclp/spark,byakuinss/spark,nlalevee/spark,huang1900/spark,haowu80s/spark,xuanyuanking/spark,ptkool/spark,darionyaphet/spark,lyogavin/spark,rekhajoshm/spark,kimoonkim/spark,stanzhai/spark,rednaxelafx/apache-spark,koeninger/spark,dotunolafunmiloye/spark,jianran/spark,wgpshashank/spark,liyichao/spark,narahari92/spark,JoshRosen/spark,JerryLead/spark,witgo/spark,tejasapatil/spark,janewangfb/spark,jianran/spark,ptkool/spark,cin/spark,wzhfy/spark,jkbradley/spark,SnappyDataInc/spark,maropu/spark,WeichenXu123/spark,debugger87/spark,jlopezmalla/spark,dotunolafunmiloye/spark,dongjoon-hyun/spark,mkolod/incubator-spark,alunarbeach/spark,rezasafi/spark,maropu/spark,ibm-research-ireland/sparkoscope,sahilTakiar/spark,cloudera/spark,ibm-research-ireland/sparkoscope,wangyum/spark,jlopezmalla/spark,apache-spark-on-k8s/spark,UndeadBaneGitHub/spark,patrick-nicholson/spark,aray/spark,xuanyuanking/spark,dhruve/spark,WindCanDie/spark,ajaysaini725/spark,witgo/spark,ptkool/spark,minixalpha/spark,nlalevee/spark,nilsgrabbert/spark,aosagie/spark,esi-mineset/spark,joseph-torres/spark,zuotingbing/spark,szhem/spark,facaiy/spark,witgo/spark,spark-test/spark,1haodian/spark,skonto/spark,sahilTakiar/spark,JoshRosen/spark,markhamstra/spark,apache-spark-on-k8s/spark,yanboliang/spark,tejasapatil/spark,shubhamchopra/spark,shaneknapp/spark,dhruve/spark,HyukjinKwon/spark,eyalfa/spark,witgo/spark,sachintyagi22/spark,aray/spark,techaddict/spark,sryza/spark,someorz/spark,MLnick/spark,ptkool/spark,zzcclp/spark,ptkool/spark,jrshust/spark,shaneknapp/spark,byakuinss/spark,sachintyagi22/spark,dotunolafunmiloye/spark,ConeyLiu/spark,BryanCutler/spark,hvanhovell/spark,sureshthalamati/spark,joseph-torres/spark,markhamstra/spark,ajaysaini725/spark,apache/spark,ankurdave/arthur,highfei2011/spark,bravo-zhang/spark,taroplus/spark,pgandhi999/spark,markhamstra/spark,xuanyuanking/spark,matthewfranglen/spark,JoshRosen/spark,bOOm-X/spark,alunarbeach/spark,apache-spark-on-k8s/spark,Panos-Bletsos/spark-cost-model-optimizer,gioenn/xSpark,huang1900/spark,maropu/spark,WindCanDie/spark,tengpeng/spark,sachintyagi22/spark,markhamstra/spark,metamx/spark,nlalevee/spark,mzl9039/spark,aokolnychyi/spark,apache/spark,minixalpha/spark,joseph-torres/spark,eyalfa/spark,witgo/spark,mike0sv/spark,holdenk/spark,actuaryzhang/spark,nchammas/spark,loneknightpy/spark,cin/spark,cloudera/spark,techaddict/spark,ioana-delaney/spark,mdespriee/spark,ahnqirage/spark,bOOm-X/spark,dhruve/spark,zhouyejoe/spark,esi-mineset/spark,wangmiao1981/spark,srowen/spark,loneknightpy/spark,tejasapatil/spark,saltstar/spark,alunarbeach/spark,MLnick/spark,HyukjinKwon/spark,kiszk/spark,sachintyagi22/spark,maropu/spark,esi-mineset/spark,kevinyu98/spark,bdrillard/spark,rekhajoshm/spark,jrshust/spark,patrick-nicholson/spark,spark-test/spark,mdespriee/spark,koeninger/spark,UndeadBaneGitHub/spark,zero323/spark,andrewor14/iolap,SHASHANKB/spark,panfengfeng/spark,shuangshuangwang/spark,markhamstra/spark,zhouyejoe/spark,mike0sv/spark,rikima/spark,zuotingbing/spark,BryanCutler/spark,saturday-shi/spark,szhem/spark,kissmetrics/spark,spark-test/spark,milliman/spark,mahak/spark,gioenn/xSpark,mike0sv/spark,narahari92/spark,dbtsai/spark,narahari92/spark,zero323/spark,darionyaphet/spark,jiangxb1987/spark,lxsmnv/spark,eyalfa/spark,caneGuy/spark,facaiy/spark,techaddict/spark,big-pegasus/spark