Wei-Chiu Chuang created HDFS-14746:
--------------------------------------
Summary: Trivial test code update after HDFS-14687
Key: HDFS-14746
URL: https://issues.apache.org/jira/browse/HDFS-14746
Project: Hadoop HDFS
Issue Type: Improvement
Components: ec
Reporter: Wei-Chiu Chuang
Instead of getting erasure coding policy instance by id, it should use a
constant value.
Change
{code}
ErasureCodingPolicy ecPolicy = SystemErasureCodingPolicies.getPolicies()
.get(3);
{code}
to
{code}
ErasureCodingPolicy ecPolicy =
SystemErasureCodingPolicies.getByID(XOR_2_1_POLICY_ID);
{code}
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]