You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Wei-Chiu Chuang (JIRA)" <ji...@apache.org> on 2019/08/19 01:28:00 UTC
[jira] [Created] (HDFS-14746) Trivial test code update after
HDFS-14687
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: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org