Skip to content

luminous: os/bluestore: handle spurious read errors - #24649

Merged
yuriw merged 1 commit into
ceph:luminousfrom
liewegas:wip-pr-23273-luminous
Nov 29, 2018
Merged

yuriw merged 1 commit into
ceph:luminousfrom
liewegas:wip-pr-23273-luminous

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)

Conflicts:
src/common/legacy_config_opts.h
src/common/options.cc
src/os/bluestore/BlueStore.cc
src/os/bluestore/BlueStore.h
src/test/objectstore/store_test.cc

@liewegas
liewegas requested a review from ifed01 October 17, 2018 22:16
@liewegas liewegas added this to the luminous milestone Oct 17, 2018
@liewegas

Copy link
Copy Markdown
Member Author

@emmericp

@liewegas
liewegas force-pushed the wip-pr-23273-luminous branch 2 times, most recently from 67c5663 to 2d02c16 Compare October 17, 2018 22:35
Comment thread src/common/legacy_config_opts.h Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is unrelated to the original patch.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

fixed!

@ifed01

ifed01 commented Oct 24, 2018

Copy link
Copy Markdown
Contributor

retest this please

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)

 Conflicts:
	src/common/legacy_config_opts.h
- adjacent options
	src/common/options.cc
- no RUNTIME flag in luminous
	src/os/bluestore/BlueStore.cc
	src/os/bluestore/BlueStore.h
- adjacent perfcounter
	src/test/objectstore/store_test.cc
- adjacent tests, no #ifdef
- g_conf, not g_conf()
- no create_new_collection
- queue_transaction etc take osr, not ch
@liewegas
liewegas force-pushed the wip-pr-23273-luminous branch from 2d02c16 to 7e0482d Compare November 18, 2018 14:04
@yuriw

yuriw commented Nov 27, 2018

Copy link
Copy Markdown
Contributor

@yuriw
yuriw merged commit de7e1d2 into ceph:luminous Nov 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