Skip to content
This repository has been archived by the owner on Feb 9, 2021. It is now read-only.

Commit

Permalink
Merge -c 1366285 from branch-1 to branch-1.1 to fix MAPREDUCE-1906. L…
Browse files Browse the repository at this point in the history
…ower minimum heartbeat interval between tasktracker and JobTracker for smaller clusters.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-1.1@1389995 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
acmurthy committed Sep 25, 2012
1 parent 886e00e commit 51fc461
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,10 @@ Release 1.1.0 - 2012.09.16

MAPREDUCE-4511. Add IFile readahead (ahmed via tucu)

MAPREDUCE-1906. Lower minimum heartbeat interval between tasktracker and
JobTracker for smaller clusters. (Todd Lipcon, backport by
Brandon Li via sseth)

BUG FIXES

HDFS-3696. Set chunked streaming mode in WebHdfsFileSystem write operations
Expand Down
2 changes: 1 addition & 1 deletion src/mapred/org/apache/hadoop/mapred/JobTracker.java
Original file line number Diff line number Diff line change
Expand Up @@ -3462,7 +3462,7 @@ public int getNextHeartbeatInterval() {
int clusterSize = getClusterStatus().getTaskTrackers();
int heartbeatInterval = Math.max(
(int)(1000 * HEARTBEATS_SCALING_FACTOR *
Math.ceil((double)clusterSize /
((double)clusterSize /
NUM_HEARTBEATS_IN_SECOND)),
HEARTBEAT_INTERVAL_MIN) ;
return heartbeatInterval;
Expand Down
2 changes: 1 addition & 1 deletion src/mapred/org/apache/hadoop/mapred/MRConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ interface MRConstants {
//
// Timeouts, constants
//
public static final int HEARTBEAT_INTERVAL_MIN = 3 * 1000;
public static final int HEARTBEAT_INTERVAL_MIN = 300;

public static final long COUNTER_UPDATE_INTERVAL = 60 * 1000;

Expand Down

0 comments on commit 51fc461

Please sign in to comment.