Skip to content

mimic: os/bluestore: handle spurious read errors - #24647

Merged
yuriw merged 1 commit into
ceph:mimicfrom
liewegas:wip-pr-23273-mimic
Oct 29, 2018
Merged

yuriw merged 1 commit into
ceph:mimicfrom
liewegas:wip-pr-23273-mimic

Conversation

@liewegas

Copy link
Copy Markdown
Member

Some kernels (4.9+) sometime fail to return data when reading
from a block device under memory pressure. This patch retries
the read if the checksum verification fails, tests show that
the first retried read succeeds in ~99.5% of the cases, so
3 attempts are made by default before giving up on the data.

Works-around: http://tracker.ceph.com/issues/22464
Signed-off-by: Paul Emmerich [email protected]
(cherry picked from commit cffcbc7)

  • conflict due to adjacent tests in store_test

@liewegas liewegas added this to the mimic milestone Oct 17, 2018
@liewegas
liewegas requested a review from ifed01 October 17, 2018 21:59
@liewegas

Copy link
Copy Markdown
Member Author

@emmericp

Comment thread src/test/objectstore/store_test.cc Outdated

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

the test uses g_conf directly, not g_conf() in mimic, see our backport here: croit@35cb7d9

no idea about luminous, but I suspect it might have the same problem

Some kernels (4.9+) sometime fail to return data when reading
from a block device under memory pressure. This patch retries
the read if the checksum verification fails, tests show that
the first retried read succeeds in ~99.5% of the cases, so
3 attempts are made by default before giving up on the data.

Works-around: http://tracker.ceph.com/issues/22464
Signed-off-by: Paul Emmerich <[email protected]>
(cherry picked from commit cffcbc7)

- conflict due to adjacent tests in store_test
- g_conf, not g_conf()
@yuriw

yuriw commented Oct 23, 2018

Copy link
Copy Markdown
Contributor

@yuriw
yuriw merged commit b20ee1a into ceph:mimic Oct 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants