New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
osd: Fixes for osd_scrub_during_recovery handling #17039
Conversation
retest this please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The OSD changes look good to me, but I noticed that comment doesn't make sense in skimming the test.
Also just realized that this config option clearly also blocks manually-scheduled scrubs; that should perhaps go on the list of things to improve about it in future. (Not now, though!)
run_osd $dir $osd || return 1 | ||
done | ||
|
||
# Create a pool with a single pg |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure looks to me like this is creating a pool with 32 PGs?
@@ -453,7 +453,7 @@ EOF | |||
err_strings[22]="log_channel[(]cluster[)] log [[]ERR[]] : [0-9]*[.]0 scrub 22 errors" | |||
err_strings[23]="log_channel[(]cluster[)] log [[]ERR[]] : scrub [0-9]*[.]0 .*:::obj15:head can't decode 'snapset' attr buffer" | |||
|
|||
for i in `seq 0 ${#err_strings[@]}` | |||
for i in `seq 0 $(expr ${#err_strings[@]} - 1)` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit, could also put:
for err_string in "${err_strings[@]}"
do
if ! grep "$err_string" $dir/osd.0.log > /dev/null;
then
echo "Missing log message '$err_string'"
ERRORS=$(expr $ERRORS + 1)
fi
done
@tchaikov I made the change that you recommended in 2 places. Just need to squash. |
Signed-off-by: David Zafman <dzafman@redhat.com>
Fixes: http://tracker.ceph.com/issues/18206 Signed-off-by: David Zafman <dzafman@redhat.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm after squashing.
Fixes: http://tracker.ceph.com/issues/18206