YARN-8391. Investigate AllocationFileLoaderService.reloadListener locking issue. Contributed by Szilard Nemeth.
This commit is contained in:
parent
4939ffedb1
commit
9a9e969570
|
@ -114,7 +114,9 @@ public class AllocationFileLoaderService extends AbstractService {
|
|||
reloadThread = new Thread(() -> {
|
||||
while (running) {
|
||||
try {
|
||||
reloadListener.onCheck();
|
||||
synchronized (this) {
|
||||
reloadListener.onCheck();
|
||||
}
|
||||
long time = clock.getTime();
|
||||
long lastModified =
|
||||
fs.getFileStatus(allocFile).getModificationTime();
|
||||
|
|
Loading…
Reference in New Issue