]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits/erasure-code/bench.sh:fix the error of getting encoding technique in... 34593/head
authorlijiaxu <lijiaxu@cmss.chinamobile.com>
Thu, 16 Apr 2020 08:36:14 +0000 (16:36 +0800)
committerlijiaxu <lijiaxu@cmss.chinamobile.com>
Tue, 21 Apr 2020 03:10:21 +0000 (11:10 +0800)
 Isa / jerasure codec ‘technique’, obtained by the following statements,
 "eval technique_parameter=\$${plugin}2technique_${technique}",
 which generate a string such as "isa2technique_vandermonde",
 and assign the value of "technique_parameter" to "isa2technique_vandermonde".

 String such as "isa2technique_vandermonde" should have a preset value, but it does not,
 which will cause string "technique_parameter" to be empty.

 Run the script, prompt the following error message and exit:
 isa technique= is not a valid coding technique.  Choose one of the following: reed_sol_van,cauchy

 To fix the bug, specify a preset value for "technique_parameter":

 + isa2technique_vandermonde='reed_sol_van'
 + isa2technique_cauchy='cauchy'
 + jerasure2technique_vandermonde='reed_sol_van'
 + jerasure2technique_cauchy='cauchy_good'

Signed-off-by: lijiaxu <lijiaxu@cmss.chinamobile.com>
qa/workunits/erasure-code/bench.sh

index 23914ef82d2e1b22a1e28afd65aae27cb96f2725..8e288f053eca5d05822f764b7e7944a93e76405a 100755 (executable)
@@ -111,6 +111,10 @@ function bench_run() {
     k2ms[4]="2 3"
     k2ms[6]="2 3 4"
     k2ms[10]="3 4"
+    local isa2technique_vandermonde='reed_sol_van'
+    local isa2technique_cauchy='cauchy'
+    local jerasure2technique_vandermonde='reed_sol_van'
+    local jerasure2technique_cauchy='cauchy_good'
     for technique in ${TECHNIQUES} ; do
         for plugin in ${PLUGINS} ; do
             eval technique_parameter=\$${plugin}2technique_${technique}