YARN-4581. AHS writer thread leak makes RM crash while RM is recovering. Contributed by sandflee.
(cherry picked from commitfc6d3a3b23
) Conflicts: hadoop-yarn-project/CHANGES.txt (cherry picked from commite09222306f
)
This commit is contained in:
parent
8a23379283
commit
a03532e04e
|
@ -1128,6 +1128,9 @@ Release 2.8.0 - UNRELEASED
|
|||
YARN-4534. Remove the redundant symbol in yarn rmadmin help msg.
|
||||
(Lin Yiqun via aajisaka)
|
||||
|
||||
YARN-4581. AHS writer thread leak makes RM crash while RM is recovering.
|
||||
(sandflee via junping_du)
|
||||
|
||||
Release 2.7.3 - UNRELEASED
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
@ -1188,6 +1191,9 @@ Release 2.7.3 - UNRELEASED
|
|||
YARN-4414. Nodemanager connection errors are retried at multiple levels
|
||||
(Chang Li via jlowe)
|
||||
|
||||
YARN-4581. AHS writer thread leak makes RM crash while RM is recovering.
|
||||
(sandflee via junping_du)
|
||||
|
||||
Release 2.7.2 - UNRELEASED
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
@ -2057,6 +2063,9 @@ Release 2.6.4 - UNRELEASED
|
|||
YARN-4414. Nodemanager connection errors are retried at multiple levels
|
||||
(Chang Li via jlowe)
|
||||
|
||||
YARN-4581. AHS writer thread leak makes RM crash while RM is recovering.
|
||||
(sandflee via junping_du)
|
||||
|
||||
Release 2.6.3 - 2015-12-17
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -734,12 +734,17 @@ public class FileSystemApplicationHistoryStore extends AbstractService
|
|||
} else {
|
||||
fsdos = fs.create(historyFile);
|
||||
}
|
||||
try {
|
||||
fs.setPermission(historyFile, HISTORY_FILE_UMASK);
|
||||
writer =
|
||||
new TFile.Writer(fsdos, MIN_BLOCK_SIZE, getConfig().get(
|
||||
YarnConfiguration.FS_APPLICATION_HISTORY_STORE_COMPRESSION_TYPE,
|
||||
YarnConfiguration.DEFAULT_FS_APPLICATION_HISTORY_STORE_COMPRESSION_TYPE), null,
|
||||
getConfig());
|
||||
} catch (IOException e) {
|
||||
IOUtils.cleanup(LOG, fsdos);
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
public synchronized void close() {
|
||||
|
|
Loading…
Reference in New Issue