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 void serviceInit(Configuration conf) throws Exception {
|
|||||||
reloadThread = new Thread(() -> {
|
reloadThread = new Thread(() -> {
|
||||||
while (running) {
|
while (running) {
|
||||||
try {
|
try {
|
||||||
reloadListener.onCheck();
|
synchronized (this) {
|
||||||
|
reloadListener.onCheck();
|
||||||
|
}
|
||||||
long time = clock.getTime();
|
long time = clock.getTime();
|
||||||
long lastModified =
|
long lastModified =
|
||||||
fs.getFileStatus(allocFile).getModificationTime();
|
fs.getFileStatus(allocFile).getModificationTime();
|
||||||
|
Loading…
Reference in New Issue
Block a user