YARN-8323. FairScheduler.allocConf should be declared as volatile. (Szilard Nemeth via Haibo Chen)

This commit is contained in:
Haibo Chen 2018-06-11 11:12:44 -07:00
parent 18201b882a
commit c190ac2be8

View File

@ -199,7 +199,7 @@ public class FairScheduler extends
private AllocationFileLoaderService allocsLoader;
@VisibleForTesting
AllocationConfiguration allocConf;
volatile AllocationConfiguration allocConf;
// Container size threshold for making a reservation.
@VisibleForTesting