Repository navigation
mgr/smb: gracefully handle transient sqlitedb errors - #69702
Conversation
a3f861e to
ee25d62
Compare
|
jenkins windows test |
|
jenkins test windows |
|
i think we have handled this issue in i agree with John's comment as well that it will be batter to handle exception in db layer instead upper layer. |
It's already addressed please check latest version of PR |
|
@avanthakkar Thanks for clarifying me. |
Well every database operation in |
|
Teuthology Run: https://pulpito-ng.ceph.com/runs/phlogistonjohn-2026-07-09_21:50:32-orch-wip-phlogistonjohn-testing-1-2026-07-09-1415-distro-default-trial Teuthology Re-run: https://pulpito-ng.ceph.com/runs/phlogistonjohn-2026-07-09_23:10:58-orch-wip-phlogistonjohn-testing-1-2026-07-09-1415-distro-default-trial |
|
@avanthakkar please check if this needs to be backported, and if so, please create a tracker. Otherwise please disregard and let me know if you're ready to merge. |
Translate sqlite3.DatabaseError into a generic StoreUnavailable in sqlite_store.py and handle it in cli.py and module.py instead of letting it surface as an unhandled exception Fixes: https://tracker.ceph.com/issues/78125 Signed-off-by: Avan Thakkar <[email protected]>
ee25d62 to
4ae80fb
Compare
I've created tracker with backports mentioned and also updated commit message with tracker link so doesn't require rerun of teuthology |
This PR intends to handle sqlite db error during PG transient state or when db is unavailable or can't be locked in by translating
sqlite3.DatabaseErrorinto a genericStoreUnavailableinsqlite_store.pyand handle it incli.pyandmodule.pyinstead of letting it surface as an unhandled exception.Fixes: https://tracker.ceph.com/issues/78125
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.