You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Andrew Wang (JIRA)" <ji...@apache.org> on 2016/02/10 22:03:18 UTC

[jira] [Created] (HDFS-9788) Incompatible tag renumbering in HeartbeatResponseProto

Andrew Wang created HDFS-9788:
---------------------------------

             Summary: Incompatible tag renumbering in HeartbeatResponseProto
                 Key: HDFS-9788
                 URL: https://issues.apache.org/jira/browse/HDFS-9788
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: rolling upgrades
    Affects Versions: 2.8.0
            Reporter: Andrew Wang
            Assignee: Andrew Wang
            Priority: Blocker


The HDFS-9426 patches for branch-2.7 and branch-2 used different tag numbers in HeartbeatResponseProto:

trunk/branch-2:
{code}
message HeartbeatResponseProto {
  repeated DatanodeCommandProto cmds = 1; // Returned commands can be null
  required NNHAStatusHeartbeatProto haStatus = 2;
  optional RollingUpgradeStatusProto rollingUpgradeStatus = 3;
  optional uint64 fullBlockReportLeaseId = 4 [ default = 0 ];
  optional RollingUpgradeStatusProto rollingUpgradeStatusV2 = 5;
}
{code}

branch-2.7:
{code}
message HeartbeatResponseProto {
  repeated DatanodeCommandProto cmds = 1; // Returned commands can be null
  required NNHAStatusHeartbeatProto haStatus = 2;
  optional RollingUpgradeStatusProto rollingUpgradeStatus = 3;
  optional RollingUpgradeStatusProto rollingUpgradeStatusV2 = 4;
}
{code}

This breaks rolling upgrade between 2.7 and a future 2.8. We need to renumber the fields to preserve wire compatibility.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)