YARN-2789. Re-instated the NodeReport.newInstance private unstable API modified in YARN-2698 so that tests in YARN frameworks don't break. Contributed by Wangda Tan.

(cherry picked from commit 6ce32f593b)
This commit is contained in:
Vinod Kumar Vavilapalli 2014-10-31 15:32:21 -07:00
parent 902566741e
commit 6d4a04a033
3 changed files with 20 additions and 0 deletions

View File

@ -792,6 +792,10 @@ Release 2.6.0 - UNRELEASED
YARN-2698. Moved some node label APIs to be correctly placed in client
protocol. (Wangda Tan via vinodkv)
YARN-2789. Re-instated the NodeReport.newInstance private unstable API
modified in YARN-2698 so that tests in YARN frameworks don't break. (Wangda
Tan via vinodkv)
Release 2.5.1 - 2014-09-05
INCOMPATIBLE CHANGES

View File

@ -47,6 +47,15 @@ import org.apache.hadoop.yarn.util.Records;
@Public
@Stable
public abstract class NodeReport {
@Private
@Unstable
public static NodeReport newInstance(NodeId nodeId, NodeState nodeState,
String httpAddress, String rackName, Resource used, Resource capability,
int numContainers, String healthReport, long lastHealthReportTime) {
return newInstance(nodeId, nodeState, httpAddress, rackName, used,
capability, numContainers, healthReport, lastHealthReportTime, null);
}
@Private
@Unstable

View File

@ -171,6 +171,13 @@ public class BuilderUtils {
return NodeId.newInstance(host, port);
}
public static NodeReport newNodeReport(NodeId nodeId, NodeState nodeState,
String httpAddress, String rackName, Resource used, Resource capability,
int numContainers, String healthReport, long lastHealthReportTime) {
return newNodeReport(nodeId, nodeState, httpAddress, rackName, used,
capability, numContainers, healthReport, lastHealthReportTime, null);
}
public static NodeReport newNodeReport(NodeId nodeId, NodeState nodeState,
String httpAddress, String rackName, Resource used, Resource capability,
int numContainers, String healthReport, long lastHealthReportTime,