MAPREDUCE-6797. Job history server scans can become blocked on a single, slow entry. Contributed by Prabhu Joseph
This commit is contained in:
parent
ff0b99eafe
commit
99c2bbd337
@ -235,7 +235,6 @@ public HistoryFileInfo addIfAbsent(HistoryFileInfo fileInfo) {
|
||||
JobId key = keys.next();
|
||||
HistoryFileInfo firstValue = cache.get(key);
|
||||
if (firstValue != null) {
|
||||
synchronized(firstValue) {
|
||||
if (firstValue.isMovePending()) {
|
||||
if (firstValue.didMoveFail() &&
|
||||
firstValue.jobIndexInfo.getFinishTime() <= cutoff) {
|
||||
@ -265,7 +264,6 @@ public HistoryFileInfo addIfAbsent(HistoryFileInfo fileInfo) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// Log output only for first jobhisotry in pendings to restrict
|
||||
// the total number of logs.
|
||||
if (inIntermediateCount > 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user