HDFS-16041. TestErasureCodingCLI fails (#3052)
This commit is contained in:
parent
986d0a4f1d
commit
98a74e2351
|
@ -466,7 +466,9 @@ public class ContentSummary extends QuotaUsage implements Writable{
|
||||||
* @return Constant-width String representation of Erasure Coding Policy
|
* @return Constant-width String representation of Erasure Coding Policy
|
||||||
*/
|
*/
|
||||||
public String toErasureCodingPolicy() {
|
public String toErasureCodingPolicy() {
|
||||||
return String.format(ERASURECODING_POLICY_FORMAT, erasureCodingPolicy);
|
return String.format(ERASURECODING_POLICY_FORMAT,
|
||||||
|
erasureCodingPolicy.equals("Replicated")
|
||||||
|
? erasureCodingPolicy : "EC:" + erasureCodingPolicy);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -983,7 +983,7 @@
|
||||||
<comparators>
|
<comparators>
|
||||||
<comparator>
|
<comparator>
|
||||||
<type>RegexpComparator</type>
|
<type>RegexpComparator</type>
|
||||||
<expected-output>( |\t)*1( |\t)*2( |\t)*0 EC:[A-Za-z0-9-]{1,}( )*/dir1</expected-output>
|
<expected-output>( |\t)*1( |\t)*2( |\t)*0( )*EC:[A-Za-z0-9-]{1,}( )*/dir1</expected-output>
|
||||||
</comparator>
|
</comparator>
|
||||||
</comparators>
|
</comparators>
|
||||||
</test>
|
</test>
|
||||||
|
@ -1004,7 +1004,7 @@
|
||||||
</comparator>
|
</comparator>
|
||||||
<comparator>
|
<comparator>
|
||||||
<type>RegexpComparator</type>
|
<type>RegexpComparator</type>
|
||||||
<expected-output>( |\t)*0( |\t)*1( |\t)*0 [A-Za-z0-9-]{1,}( )*/file1</expected-output>
|
<expected-output>( |\t)*0( |\t)*1( |\t)*0( )*[A-Za-z0-9-]{1,}( )*/file1</expected-output>
|
||||||
</comparator>
|
</comparator>
|
||||||
</comparators>
|
</comparators>
|
||||||
</test>
|
</test>
|
||||||
|
|
Loading…
Reference in New Issue