[SPARK-3240] Adding known issue for MESOS-1688
[SPARK-3240] Adding known issue for MESOS-1688

When using Mesos with the fine-grained mode, a Spark job can run into a dead lock on low allocatable memory on Mesos slaves. As a work-around 32 MB (= Mesos MIN_MEM) are allocated for each task, to ensure Mesos making new offers after task completion.
From my perspective, it would be better to fix this problem in Mesos by dropping the constraint on memory for offers, but as temporary solution this patch helps to avoid the dead lock on current Mesos versions.
See [[MESOS-1688] No offers if no memory is allocatable](https://issues.apache.org/jira/browse/MESOS-1688) for details for this problem.

Author: Martin Weindel <martin.weindel@gmail.com>

Closes #1860 from MartinWeindel/master and squashes the following commits:

5762030 [Martin Weindel] reverting work-around
a6bf837 [Martin Weindel] added known issue for issue MESOS-1688
d9d2ca6 [Martin Weindel] work around for problem with Mesos offering semantic (see [https://issues.apache.org/jira/browse/MESOS-1688])

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