Repository navigation
tentacle: mgr/smb: fix sqlite3.InternalError crash on lost RADOS lock - #71321
Merged
Merged
Conversation
…) failure FileSize() returned SQLITE_NOTFOUND instead of SQLITE_IOERR_FSTAT on a failed stat(), which Python's sqlite3 module can't map and surfaces as an unhandled sqlite3.InternalError, crashing the calling mgr module. Access() had the same gap, silently reporting an existing file as missing instead of returning an I/O error. Add cephsqlite_inject_stat_error_probability plus a regression test that exercises this deterministically. Fixes: https://tracker.ceph.com/issues/79526 Signed-off-by: Nitzan Mordechai <[email protected]> Assisted-by: IBM-Bob:ClaudeSonnet (cherry picked from commit 3a023c6)
db_ready() only caught MgrDBNotReady, so a raw sqlite3.DatabaseError from the db property still crashed the calling module. set_kv()/get_kv() had the same gap; give them the same @MgrModuleRecoverDB retry protection devicehealth already uses for its own db access. Fixes: https://tracker.ceph.com/issues/79526 Signed-off-by: Nitzan Mordechai <[email protected]> Assisted-by: IBM-Bob:ClaudeSonnet (cherry picked from commit 085e6bb)
…hing Wire the new fault injector into thrashosds-health.yaml at a low probability so teuthology suites with osd thrasher also add to ignorelist the expected log messages it can produce. Fixes: https://tracker.ceph.com/issues/79526 Signed-off-by: Nitzan Mordechai <[email protected]> (cherry picked from commit 4960356)
Config Diff Tool Output+ added: cephsqlite_inject_stat_error_probability (global.yaml.in)
The above configuration changes are found in the PR. Please update the relevant release documentation if necessary. |
Contributor
|
This PR has been added to wip-yuri9-testing-20260831.150649-tentacle. |
Contributor
Author
batrick
approved these changes
Oct 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
backport tracker: https://tracker.ceph.com/issues/79841
backport of #71094
parent tracker: https://tracker.ceph.com/issues/79526
this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh