]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/test-erasure-code.sh: Don't grep entire bluestore directory 26899/head
authorDavid Zafman <dzafman@redhat.com>
Mon, 11 Mar 2019 20:56:52 +0000 (13:56 -0700)
committerDavid Zafman <dzafman@redhat.com>
Tue, 12 Mar 2019 01:47:29 +0000 (18:47 -0700)
Bluestore caused grep crash with "grep: memory exhausted" due to
size of "block" storage.

Fixes: http://tracker.ceph.com/issues/38678
Signed-off-by: David Zafman <dzafman@redhat.com>
qa/standalone/erasure-code/test-erasure-code.sh

index ecdc25421ca7e4c969e2aee837aa9d39b01c276a..f01d65519899f029e45cfde2560744d5fe3c1250 100755 (executable)
@@ -292,8 +292,8 @@ function verify_chunk_mapping() {
     rm $dir/COPY
 
     local -a osds=($(get_osds $poolname SOMETHING$poolname))
-    grep --quiet --recursive --text FIRST$poolname $dir/${osds[$first]} || return 1
-    grep --quiet --recursive --text SECOND$poolname $dir/${osds[$second]} || return 1
+    objectstore_tool $dir ${osds[$first]} SOMETHING$poolname get-bytes | grep --quiet FIRST$poolname || return 1
+    objectstore_tool $dir ${osds[$second]} SOMETHING$poolname get-bytes | grep --quiet SECOND$poolname || return 1
 }
 
 function TEST_chunk_mapping() {