I am trying to make some improvement on fairscheduler, but get some test failure on TestFairScheduler, due to redundant FairScheduler creation:
In TestFairScheduler, FairScheduler and RM is created, then set RMContext of RM to scheduler.
However in several case, scheduler is renewed, as a result RMcontext in scheduler is null.
Then do scheduler.init(conf), I get a NPE(I try to get something from RMContext in scheduler initialization).
So FairScheduler should not be renewed in test block.