From 51a45e796e0fa051327f8bd8c02f2c35519df149 Mon Sep 17 00:00:00 2001 From: David Zafman Date: Mon, 11 Mar 2019 13:56:52 -0700 Subject: [PATCH] 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 --- qa/standalone/erasure-code/test-erasure-code.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() { -- 2.47.3