Relax FlushSchedule test
Relax FlushSchedule test

Summary: The test makes sure that we don't call flush too often. For that, it's ok to check if we have less than 10 table files. Otherwise, the test is flaky because it's hard to estimate number of entries in the memtable before it gets flushed (any ideas?)

Test Plan: Still works, but hopefully less flaky.

Reviewers: ljin, sdong, yhchiang

Reviewed by: yhchiang

Subscribers: leveldb

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

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