YARN-1568. Rename clusterid to clusterId in ActiveRMInfoProto (kasha)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1556435 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
076ecf79ca
commit
49ec397340
@ -203,6 +203,8 @@ Release 2.4.0 - UNRELEASED
|
|||||||
YARN-1482. Modified WebApplicationProxy to make it work across ResourceManager
|
YARN-1482. Modified WebApplicationProxy to make it work across ResourceManager
|
||||||
fail-over. (Xuan Gong via vinodkv)
|
fail-over. (Xuan Gong via vinodkv)
|
||||||
|
|
||||||
|
YARN-1568. Rename clusterid to clusterId in ActiveRMInfoProto (kasha)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
BUG FIXES
|
BUG FIXES
|
||||||
|
@ -138,6 +138,6 @@ message RMStateVersionProto {
|
|||||||
///////////// RM Failover related records ////////////////////////
|
///////////// RM Failover related records ////////////////////////
|
||||||
//////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////
|
||||||
message ActiveRMInfoProto {
|
message ActiveRMInfoProto {
|
||||||
required string clusterid = 1;
|
required string clusterId = 1;
|
||||||
required string rmId = 2;
|
required string rmId = 2;
|
||||||
}
|
}
|
||||||
|
@ -172,7 +172,7 @@ private static byte[] createActiveNodeInfo(String clusterId, String rmId)
|
|||||||
throws IOException {
|
throws IOException {
|
||||||
return YarnServerResourceManagerServiceProtos.ActiveRMInfoProto
|
return YarnServerResourceManagerServiceProtos.ActiveRMInfoProto
|
||||||
.newBuilder()
|
.newBuilder()
|
||||||
.setClusterid(clusterId)
|
.setClusterId(clusterId)
|
||||||
.setRmId(rmId)
|
.setRmId(rmId)
|
||||||
.build()
|
.build()
|
||||||
.toByteArray();
|
.toByteArray();
|
||||||
@ -198,10 +198,10 @@ private synchronized boolean isParentZnodeSafe(String clusterId)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check if the passed proto corresponds to an RM in the same cluster
|
// Check if the passed proto corresponds to an RM in the same cluster
|
||||||
if (!proto.getClusterid().equals(clusterId)) {
|
if (!proto.getClusterId().equals(clusterId)) {
|
||||||
LOG.error("Mismatched cluster! The other RM seems " +
|
LOG.error("Mismatched cluster! The other RM seems " +
|
||||||
"to be from a different cluster. Current cluster = " + clusterId +
|
"to be from a different cluster. Current cluster = " + clusterId +
|
||||||
"Other RM's cluster = " + proto.getClusterid());
|
"Other RM's cluster = " + proto.getClusterId());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user