Skip to content

Commit

Permalink
Fix Java6 errors in AbstractID, pull JobManager changes into YARN app…
Browse files Browse the repository at this point in the history
… master
  • Loading branch information
StephanEwen committed Sep 20, 2014
1 parent cdee875 commit 73ebd3e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ public ApplicationMasterStatus getAppplicationMasterStatus() {
amStatus.setNumSlots(0);
} else {
amStatus.setNumTaskManagers(jobManager.getNumberOfTaskManagers());
amStatus.setNumSlots(jobManager.getAvailableSlots());
amStatus.setNumSlots(jobManager.getTotalNumberOfRegisteredSlots());
}
amStatus.setMessageCount(messages.size());
amStatus.setFailed(isFailed);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,8 @@ public String toString() {

@Override
public int compareTo(AbstractID o) {
int diff1 = Long.compare(this.upperPart, o.upperPart);
int diff2 = Long.compare(this.lowerPart, o.lowerPart);
int diff1 = (this.upperPart < o.upperPart) ? -1 : ((this.upperPart == o.upperPart) ? 0 : 1);
int diff2 = (this.lowerPart < o.lowerPart) ? -1 : ((this.lowerPart == o.lowerPart) ? 0 : 1);
return diff1 == 0 ? diff2 : diff1;
}
}

0 comments on commit 73ebd3e

Please sign in to comment.