Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-6142 Support rolling upgrade between 2.x and 3.x
  3. YARN-7219

Make AllocateRequestProto compatible with branch-2/branch-2.8

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 3.0.0-beta1
    • 3.0.0
    • yarn
    • None
    • Reviewed
    • Change update_requests field id to 7. This matches the current field id in branch-2 and branch-2.8.

    Description

      For yarn_service_protos.proto, we have the following code in
      (branch-2.8.0, branch-2.8, branch-2)

      message AllocateRequestProto {
        repeated ResourceRequestProto ask = 1;
        repeated ContainerIdProto release = 2;
        optional ResourceBlacklistRequestProto blacklist_request = 3;
        optional int32 response_id = 4;
        optional float progress = 5;
        repeated ContainerResourceIncreaseRequestProto increase_request = 6;
        repeated UpdateContainerRequestProto update_requests = 7;
      }
      

      For yarn_service_protos.proto, we have the following code in
      (trunk)

      message AllocateRequestProto {
        repeated ResourceRequestProto ask = 1;
        repeated ContainerIdProto release = 2;
        optional ResourceBlacklistRequestProto blacklist_request = 3;
        optional int32 response_id = 4;
        optional float progress = 5;
        repeated UpdateContainerRequestProto update_requests = 6;
      }
      

      Notes

      • YARN-3866 was the original JIRA for container resizing.
      • YARN-5221 is what introduced the incompatible change.
      • In branch-2/branch-2.8/branch-2.8.0, this protobuf change was undone by "Addendum patch to YARN-3866: fix incompatible API change."
      • There was a similar API fix done in YARN-6071.

      Attachments

        1. YARN-7219.001.patch
          0.8 kB
          Ray Chiang

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            rchiang Ray Chiang
            rchiang Ray Chiang
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Issue deployment