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

Trivial test code update after HDFS-14687

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.0, 3.2.1, 3.1.3
    • Component/s: ec
    • Labels:
      None

      Description

      Instead of getting erasure coding policy instance by id, it should use a constant value.
      Change

      ErasureCodingPolicy ecPolicy = SystemErasureCodingPolicies.getPolicies()
              .get(3);
      

      to

      ErasureCodingPolicy ecPolicy = SystemErasureCodingPolicies.getByID(XOR_2_1_POLICY_ID);
      

        Attachments

        1. HDFS-14746.001.patch
          1 kB
          kevin su

          Activity

            People

            • Assignee:
              pingsutw kevin su
              Reporter:
              weichiu Wei-Chiu Chuang
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: