YARN-8322. Change log level when there is an IOException when the allocation file is loaded. (Szilard Nemeth via Haibo Chen)

This commit is contained in:
Haibo Chen 2018-06-11 11:16:21 -07:00
parent c190ac2be8
commit 676dcffff5
1 changed files with 2 additions and 2 deletions

View File

@ -109,7 +109,7 @@ public class AllocationFileLoaderService extends AbstractService {
@Override
public void serviceInit(Configuration conf) throws Exception {
this.allocFile = getAllocationFile(conf);
if(this.allocFile != null) {
if (this.allocFile != null) {
this.fs = allocFile.getFileSystem(conf);
reloadThread = new Thread(() -> {
while (running) {
@ -138,7 +138,7 @@ public class AllocationFileLoaderService extends AbstractService {
lastReloadAttemptFailed = true;
}
} catch (IOException e) {
LOG.info("Exception while loading allocation file: " + e);
LOG.error("Exception while loading allocation file: " + e);
}
try {
Thread.sleep(reloadIntervalMs);