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

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

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0-alpha1
    • Fix Version/s: 2.0.3-alpha
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      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

            People

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

              Dates

              • Created:
                Updated:
                Resolved: