From: David Zafman Date: Mon, 11 Mar 2019 20:56:52 +0000 (-0700) Subject: qa/test-erasure-code.sh: Don't grep entire bluestore directory X-Git-Tag: v14.2.0~46^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F26899%2Fhead;p=ceph.git qa/test-erasure-code.sh: Don't grep entire bluestore directory 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 --- diff --git a/qa/standalone/erasure-code/test-erasure-code.sh b/qa/standalone/erasure-code/test-erasure-code.sh index ecdc25421ca7..f01d65519899 100755 --- a/qa/standalone/erasure-code/test-erasure-code.sh +++ b/qa/standalone/erasure-code/test-erasure-code.sh @@ -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() {