|
@@ -214,7 +214,7 @@
|
|
|
<comparators>
|
|
|
<comparator>
|
|
|
<type>SubstringComparator</type>
|
|
|
- <expected-output>Set erasure coding policy RS-6-3-1024k on /ecdir</expected-output>
|
|
|
+ <expected-output>Set RS-6-3-1024k erasure coding policy on /ecdir</expected-output>
|
|
|
</comparator>
|
|
|
</comparators>
|
|
|
</test>
|
|
@@ -232,7 +232,7 @@
|
|
|
<comparators>
|
|
|
<comparator>
|
|
|
<type>SubstringComparator</type>
|
|
|
- <expected-output>Set erasure coding policy RS-6-3-1024k on /ecdir</expected-output>
|
|
|
+ <expected-output>Set RS-6-3-1024k erasure coding policy on /ecdir</expected-output>
|
|
|
</comparator>
|
|
|
</comparators>
|
|
|
</test>
|
|
@@ -311,7 +311,7 @@
|
|
|
<comparators>
|
|
|
<comparator>
|
|
|
<type>SubstringComparator</type>
|
|
|
- <expected-output>Warning: setting erasure coding policy on a non-empty directory will not automatically convert existing files to RS-6-3-1024</expected-output>
|
|
|
+ <expected-output>Warning: setting erasure coding policy on a non-empty directory will not automatically convert existing files to RS-6-3-1024k erasure coding policy</expected-output>
|
|
|
</comparator>
|
|
|
</comparators>
|
|
|
</test>
|
|
@@ -695,6 +695,28 @@
|
|
|
</comparators>
|
|
|
</test>
|
|
|
|
|
|
+ <test>
|
|
|
+ <description>setPolicy : set erasure coding policy without given a specific policy name on a non empty directory</description>
|
|
|
+ <test-commands>
|
|
|
+ <command>-fs NAMENODE -mkdir /ecdir</command>
|
|
|
+ <command>-fs NAMENODE -mkdir /ecdir/ecsubdir</command>
|
|
|
+ <ec-admin-command>-fs NAMENODE -setPolicy -path /ecdir</ec-admin-command>
|
|
|
+ </test-commands>
|
|
|
+ <cleanup-commands>
|
|
|
+ <command>-fs NAMENODE -rm -R /ecdir</command>
|
|
|
+ </cleanup-commands>
|
|
|
+ <comparators>
|
|
|
+ <comparator>
|
|
|
+ <type>SubstringComparator</type>
|
|
|
+ <expected-output>Set default erasure coding policy on /ecdir</expected-output>
|
|
|
+ </comparator>
|
|
|
+ <comparator>
|
|
|
+ <type>SubstringComparator</type>
|
|
|
+ <expected-output>Warning: setting erasure coding policy on a non-empty directory will not automatically convert existing files to default erasure coding policy</expected-output>
|
|
|
+ </comparator>
|
|
|
+ </comparators>
|
|
|
+ </test>
|
|
|
+
|
|
|
<test>
|
|
|
<description>getPolicy: get the default policy after setPolicy without given a specific policy name</description>
|
|
|
<test-commands>
|