Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-4393

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

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • 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();

      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:
            Brandon Li
            Reporter:
            Brandon Li
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development