Skip to content
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

Merged
merged 2 commits into from Aug 22, 2017

Conversation

dzafman
Copy link
Contributor

@dzafman dzafman commented Aug 16, 2017

@dzafman
Copy link
Contributor Author

dzafman commented Aug 16, 2017

retest this please

Copy link
Member

@gregsfortytwo gregsfortytwo left a 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
Copy link
Member

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)`
Copy link
Contributor

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

@dzafman
Copy link
Contributor Author

dzafman commented Aug 21, 2017

@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>
Copy link
Contributor

@tchaikov tchaikov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm after squashing.

@tchaikov
Copy link
Contributor

@tchaikov tchaikov merged commit 85b6367 into ceph:master Aug 22, 2017
@dzafman dzafman deleted the wip-18206 branch August 23, 2017 00:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants