Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-252

add versioning to RPC

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.3.0
    • 0.5.0
    • ipc
    • None

    Description

      currently, any change to any rpc message breaks the protocol, with mysterious exceptions occurring at run time.
      a versioning sceme would have two benefits:

      • intelligent error messages, indicating that an upgrade is required
      • backwards compatibility could be supported.

      the proposal is to add a "const version" for each protocol, and a method: int getVersion(int version) that sends the client's version and receives the server's version. This would be the first method invoked on connection. Both sides then either agree on the lowest version number, providing backwards compatibility support, or abort the connection as "unsupported version".

      Attachments

        1. rpc-versioning.patch
          16 kB
          Milind Barve

        Issue Links

        Activity

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

          People

            Unassigned Unassigned
            yarnon Yoram Arnon
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Issue deployment