Repository navigation
osd: avoid ceph_abort in build_incremental_map_msg when newest_map is misssig - #67253
Conversation
|
Can one of the admins verify this patch? |
13 similar comments
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
rzarzynski
left a comment
There was a problem hiding this comment.
Could you please add the Fixes and Signed-off-by lines to the commit's description?
Also, having (in the commit description) the explanation on when an OSD might not have the map would be needed.
|
CC: @VinayakTiwari1103. |
Done @rzarzynski ,I have updated it ,Sorry for the Late reply |
|
Hi @VinayakTiwari1103 |
ca58652 to
4edabc6
Compare
Got it now |
rzarzynski
left a comment
There was a problem hiding this comment.
Let's bake this change in main for awhile.
| if (!get_map_bl(m->newest_map, bl)) { | ||
| derr << __func__ << " unable to load latest full map " << m->newest_map | ||
| << dendl; | ||
| ceph_abort(); |
There was a problem hiding this comment.
I agree we shouldn't ceph_abort() here as OSDSuperblock can get changed (and thus m->newest_map can be stale) while a thread is within OSDService::build_incremental_map_msg().
| m->maps[m->newest_map] = std::move(bl); | ||
| } else { | ||
| derr << __func__ << " unable to load latest map " << m->newest_map | ||
| << ", sending empty map message (peer will drop or re-request from mon)" |
There was a problem hiding this comment.
I agree m is empty at the moment. If an execution reaches this code, m contains no map nor incremental map. The reason in the early exit above:
if (!m->maps.empty() ||
!m->incremental_maps.empty()) {
// send what we have so far
return m;
}OK.
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok to test" to allow the Jenkins jobs to run. |
|
jenkins test docs |
|
This can be merged once the docs check passes. |
|
jenkins test docs |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
… missing When sharing OSD maps with a peer (e.g. during heartbeat in maybe_share_map), we may have already trimmed the requested range or newest_map (e.g. trim race, or store read failure). In that case the panic path tried to send newest_map; if it could not be loaded, the code called ceph_abort() and crashed the OSD. Log and return an empty MOSDMap instead of aborting. The receiver drops such messages (last <= superblock.get_newest_map()) and can re-request from the mon. Fixes: https://tracker.ceph.com/issues/74800 Signed-off-by: Vinayak Tiwari <[email protected]>
4edabc6 to
c08a0eb
Compare
|
@VinayakTiwari1103 I rebased your branch to hopefully get the docs check to pass. |
Thanks @ljflores for rebasing the branch and helping with the docs check! Apologies for the delayed response. Please let me know if any further changes are needed from my side. |
|
@VinayakTiwari1103 - Approvals are pending for this PR. Once the required approvals are received, please feel free to proceed with the merge. |
* refs/pull/66294/head: qa: enforce centos9 for test qa: rename distro qa/suites/fs/bugs: use centos9 for squid upgrade test qa: remove unused variables qa: use centos9 for fs suites using k-testing qa: update fs suite to rocky10 qa: skip dashboard install due to dependency noise qa: only setup nat rules during bridge creation qa: correct wording of comment qa: use nft instead iptables qa: use py3 builtin ipaddress module Merge pull request ceph#68167 from smanjara/wip-fix-75465 Merge pull request ceph#67253 from VinayakTiwari1103/osd-fix-build-incremental-map-msg-abort osd: avoid ceph_abort in build_incremental_map_msg when newest_map is missing qa/multisite: fix test_bucket_remove false failure on bucket deletion check
osd: avoid ceph_abort in build_incremental_map_msg when newest_map is missing
When sharing OSD maps with a peer (e.g. during heartbeat in
maybe_share_map), we may have already trimmed the requested range ornewest_map(e.g. trim race, or store read failure). In that case the panic path tried to sendnewest_map; if it could not be loaded, the code calledceph_abort()and crashed the OSD.Log and return an empty
MOSDMapinstead of aborting. The receiver drops such messages (last <= superblock.get_newest_map()) and can re-request from the mon.Fixes: https://tracker.ceph.com/issues/74800
Signed-off-by: Vinayak Tiwari <[email protected]>
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.