Improve the robustness of ThreadStatusSingleCompaction
Improve the robustness of ThreadStatusSingleCompaction

Summary:
Improve the robustness of ThreadStatusSingleCompaction
by ensuring the number of files flushed in the test.

Test Plan:
export ROCKSDB_TESTS=ThreadStatus
./db_test

Reviewers: sdong, igor

Subscribers: dhruba, leveldb

Differential Revision: https://reviews.facebook.net/D35019

sorphi/rocksdb,temicai/rocksdb,wenduo/rocksdb,alihalabyah/rocksdb,JoeWoo/rocksdb,JackLian/rocksdb,IMCG/RcoksDB,JackLian/rocksdb,temicai/rocksdb,jalexanderqed/rocksdb,vmx/rocksdb,RyanTech/rocksdb,ylong/rocksdb,SunguckLee/RocksDB,amyvmiwei/rocksdb,rDSN-Projects/rocksdb.replicated,vashstorm/rocksdb,sorphi/rocksdb,NickCis/rocksdb,Vaisman/rocksdb,kaschaeffer/rocksdb,mbarbon/rocksdb,makelivedotnet/rocksdb,NickCis/rocksdb,zhangpng/rocksdb,bbiao/rocksdb,wlqGit/rocksdb,biddyweb/rocksdb,virtdb/rocksdb,sorphi/rocksdb,SunguckLee/RocksDB,fengshao0907/rocksdb,ryneli/rocksdb,mbarbon/rocksdb,caijieming-baidu/rocksdb,caijieming-baidu/rocksdb,ryneli/rocksdb,bbiao/rocksdb,alihalabyah/rocksdb,siddhartharay007/rocksdb,ylong/rocksdb,ylong/rocksdb,Applied-Duality/rocksdb,temicai/rocksdb,flabby/rocksdb,facebook/rocksdb,tsheasha/rocksdb,Applied-Duality/rocksdb,ylong/rocksdb,vmx/rocksdb,bbiao/rocksdb,tizzybec/rocksdb,OverlordQ/rocksdb,kaschaeffer/rocksdb,vmx/rocksdb,caijieming-baidu/rocksdb,ylong/rocksdb,Applied-Duality/rocksdb,rDSN-Projects/rocksdb.replicated,wat-ze-hex/rocksdb,bbiao/rocksdb,dkorolev/rocksdb,ryneli/rocksdb,Andymic/rocksdb,amyvmiwei/rocksdb,skunkwerks/rocksdb,JackLian/rocksdb,wskplho/rocksdb,JoeWoo/rocksdb,hobinyoon/rocksdb,OverlordQ/rocksdb,mbarbon/rocksdb,norton/rocksdb,skunkwerks/rocksdb,ryneli/rocksdb,vmx/rocksdb,rDSN-Projects/rocksdb.replicated,facebook/rocksdb,amyvmiwei/rocksdb,RyanTech/rocksdb,bbiao/rocksdb,sorphi/rocksdb,makelivedotnet/rocksdb,Andymic/rocksdb,anagav/rocksdb,amyvmiwei/rocksdb,norton/rocksdb,lgscofield/rocksdb,biddyweb/rocksdb,SunguckLee/RocksDB,wenduo/rocksdb,wlqGit/rocksdb,Applied-Duality/rocksdb,Vaisman/rocksdb,wat-ze-hex/rocksdb,sorphi/rocksdb,amyvmiwei/rocksdb,Andymic/rocksdb,wskplho/rocksdb,zhangpng/rocksdb,tizzybec/rocksdb,biddyweb/rocksdb,wenduo/rocksdb,vashstorm/rocksdb,rDSN-Projects/rocksdb.replicated,bbiao/rocksdb,rDSN-Projects/rocksdb.replicated,tizzybec/rocksdb,makelivedotnet/rocksdb,tizzybec/rocksdb,alihalabyah/rocksdb,JohnPJenkins/rocksdb,IMCG/RcoksDB,RyanTech/rocksdb,hobinyoon/rocksdb,facebook/rocksdb,lgscofield/rocksdb,siddhartharay007/rocksdb,jalexanderqed/rocksdb,amyvmiwei/rocksdb,OverlordQ/rocksdb,kaschaeffer/rocksdb,anagav/rocksdb,wat-ze-hex/rocksdb,OverlordQ/rocksdb,rDSN-Projects/rocksdb.replicated,virtdb/rocksdb,NickCis/rocksdb,OverlordQ/rocksdb,JohnPJenkins/rocksdb,geraldoandradee/rocksdb,amyvmiwei/rocksdb,norton/rocksdb,wlqGit/rocksdb,rDSN-Projects/rocksdb.replicated,makelivedotnet/rocksdb,flabby/rocksdb,makelivedotnet/rocksdb,IMCG/RcoksDB,alihalabyah/rocksdb,tsheasha/rocksdb,anagav/rocksdb,hobinyoon/rocksdb,SunguckLee/RocksDB,Andymic/rocksdb,Applied-Duality/rocksdb,zhangpng/rocksdb,jalexanderqed/rocksdb,luckywhu/rocksdb,siddhartharay007/rocksdb,biddyweb/rocksdb,biddyweb/rocksdb,mbarbon/rocksdb,wskplho/rocksdb,Vaisman/rocksdb,vmx/rocksdb,wenduo/rocksdb,anagav/rocksdb,RyanTech/rocksdb,virtdb/rocksdb,wat-ze-hex/rocksdb,fengshao0907/rocksdb,ylong/rocksdb,geraldoandradee/rocksdb,dkorolev/rocksdb,wenduo/rocksdb,JoeWoo/rocksdb,tizzybec/rocksdb,kaschaeffer/rocksdb,norton/rocksdb,facebook/rocksdb,wat-ze-hex/rocksdb,fengshao0907/rocksdb,jalexanderqed/rocksdb,flabby/rocksdb,kaschaeffer/rocksdb,RyanTech/rocksdb,JohnPJenkins/rocksdb,wlqGit/rocksdb,wat-ze-hex/rocksdb,tsheasha/rocksdb,virtdb/rocksdb,vmx/rocksdb,JohnPJenkins/rocksdb,vmx/rocksdb,norton/rocksdb,fengshao0907/rocksdb,vashstorm/rocksdb,wskplho/rocksdb,mbarbon/rocksdb,skunkwerks/rocksdb,Vaisman/rocksdb,JoeWoo/rocksdb,tsheasha/rocksdb,luckywhu/rocksdb,dkorolev/rocksdb,geraldoandradee/rocksdb,dkorolev/rocksdb,wlqGit/rocksdb,JackLian/rocksdb,siddhartharay007/rocksdb,wskplho/rocksdb,tsheasha/rocksdb,caijieming-baidu/rocksdb,tsheasha/rocksdb,caijieming-baidu/rocksdb,IMCG/RcoksDB,anagav/rocksdb,fengshao0907/rocksdb,Andymic/rocksdb,norton/rocksdb,fengshao0907/rocksdb,ylong/rocksdb,geraldoandradee/rocksdb,facebook/rocksdb,flabby/rocksdb,lgscofield/rocksdb,tizzybec/rocksdb,virtdb/rocksdb,geraldoandradee/rocksdb,Applied-Duality/rocksdb,NickCis/rocksdb,vashstorm/rocksdb,kaschaeffer/rocksdb,JackLian/rocksdb,biddyweb/rocksdb,zhangpng/rocksdb,alihalabyah/rocksdb,bbiao/rocksdb,OverlordQ/rocksdb,skunkwerks/rocksdb,ryneli/rocksdb,virtdb/rocksdb,SunguckLee/RocksDB,jalexanderqed/rocksdb,facebook/rocksdb,skunkwerks/rocksdb,IMCG/RcoksDB,flabby/rocksdb,Andymic/rocksdb,alihalabyah/rocksdb,JackLian/rocksdb,tizzybec/rocksdb,dkorolev/rocksdb,kaschaeffer/rocksdb,makelivedotnet/rocksdb,luckywhu/rocksdb,JohnPJenkins/rocksdb,flabby/rocksdb,lgscofield/rocksdb,dkorolev/rocksdb,ryneli/rocksdb,ryneli/rocksdb,flabby/rocksdb,NickCis/rocksdb,virtdb/rocksdb,hobinyoon/rocksdb,siddhartharay007/rocksdb,geraldoandradee/rocksdb,hobinyoon/rocksdb,temicai/rocksdb,fengshao0907/rocksdb,wlqGit/rocksdb,zhangpng/rocksdb,temicai/rocksdb,IMCG/RcoksDB,alihalabyah/rocksdb,JoeWoo/rocksdb,RyanTech/rocksdb,siddhartharay007/rocksdb,Andymic/rocksdb,JackLian/rocksdb,vashstorm/rocksdb,JohnPJenkins/rocksdb,skunkwerks/rocksdb,lgscofield/rocksdb,biddyweb/rocksdb,luckywhu/rocksdb,SunguckLee/RocksDB,sorphi/rocksdb,wenduo/rocksdb,SunguckLee/RocksDB,SunguckLee/RocksDB,NickCis/rocksdb,OverlordQ/rocksdb,facebook/rocksdb,geraldoandradee/rocksdb,norton/rocksdb,wenduo/rocksdb,mbarbon/rocksdb,jalexanderqed/rocksdb,wskplho/rocksdb,zhangpng/rocksdb,caijieming-baidu/rocksdb,Vaisman/rocksdb,RyanTech/rocksdb,norton/rocksdb,luckywhu/rocksdb,wskplho/rocksdb,caijieming-baidu/rocksdb,wenduo/rocksdb,lgscofield/rocksdb,anagav/rocksdb,temicai/rocksdb,wat-ze-hex/rocksdb,temicai/rocksdb,JoeWoo/rocksdb,bbiao/rocksdb,tsheasha/rocksdb,JoeWoo/rocksdb,luckywhu/rocksdb,Andymic/rocksdb,anagav/rocksdb,makelivedotnet/rocksdb,sorphi/rocksdb,hobinyoon/rocksdb,siddhartharay007/rocksdb,vashstorm/rocksdb,wlqGit/rocksdb,IMCG/RcoksDB,NickCis/rocksdb,jalexanderqed/rocksdb,hobinyoon/rocksdb,facebook/rocksdb,tsheasha/rocksdb,Vaisman/rocksdb,hobinyoon/rocksdb,skunkwerks/rocksdb,zhangpng/rocksdb,Vaisman/rocksdb,JohnPJenkins/rocksdb,dkorolev/rocksdb,mbarbon/rocksdb,lgscofield/rocksdb,wat-ze-hex/rocksdb,vmx/rocksdb,luckywhu/rocksdb,Applied-Duality/rocksdb,vashstorm/rocksdb