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:
parent
c190ac2be8
commit
676dcffff5
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue