YARN-8321. AllocationFileLoaderService.getAllocationFile() should be declared as VisibleForTest. (Szilard Nemeth via Haibo Chen)

This commit is contained in:
Haibo Chen 2018-06-11 11:18:44 -07:00
parent 676dcffff5
commit 180b3c960b
1 changed files with 2 additions and 1 deletions

View File

@ -181,7 +181,8 @@ public class AllocationFileLoaderService extends AbstractService {
* path is relative, it is searched for in the * path is relative, it is searched for in the
* classpath, but loaded like a regular File. * classpath, but loaded like a regular File.
*/ */
public Path getAllocationFile(Configuration conf) @VisibleForTesting
Path getAllocationFile(Configuration conf)
throws UnsupportedFileSystemException { throws UnsupportedFileSystemException {
String allocFilePath = conf.get(FairSchedulerConfiguration.ALLOCATION_FILE, String allocFilePath = conf.get(FairSchedulerConfiguration.ALLOCATION_FILE,
FairSchedulerConfiguration.DEFAULT_ALLOCATION_FILE); FairSchedulerConfiguration.DEFAULT_ALLOCATION_FILE);