Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-4393

Empty request and responses in protocol translators can be static final members

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

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0.0-alpha1
    • 2.0.3-alpha
    • None
    • None
    • Reviewed

    Description

      Some of the empty request and responses in protocol translators are unnecessarily created every time. They can be static final members in the translators.

      Example: ClientNamenodeProtocolTranslatorPB.java

      GetServerDefaultsRequestProto req = GetServerDefaultsRequestProto.newBuilder().build();

      Attachments

        1. HDFS-4393.patch
          40 kB
          Brandon Li
        2. HDFS-4393.patch
          18 kB
          Brandon Li
        3. HDFS-4393.patch
          11 kB
          Brandon Li

        Activity

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

          People

            brandonli Brandon Li
            brandonli Brandon Li
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment