Skip to content

Recreate notary store on failure to prevent save deadlock and data loss - #1640

Merged
krassowski merged 7 commits into
jupyter-server:mainfrom
krassowski:fix-save-on-notary-store-failure
May 20, 2026
Merged

Recreate notary store on failure to prevent save deadlock and data loss#1640
krassowski merged 7 commits into
jupyter-server:mainfrom
krassowski:fix-save-on-notary-store-failure

Conversation

@krassowski

@krassowski krassowski commented May 12, 2026

Copy link
Copy Markdown
Collaborator

@krassowski krassowski added the bug label May 12, 2026
@krassowski
krassowski marked this pull request as ready for review May 12, 2026 15:59
@krassowski
krassowski requested a review from Carreau May 12, 2026 16:00
Comment thread jupyter_server/services/contents/manager.py Outdated
# attempt to recreate the database if it detects errors during initialization,
# and fallback to in-memory (`:memory:`) SQLite database if necessary.
self.notary.store = self.notary.store_factory()
self.check_and_sign(nb, path, _retrying=True)

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.

+1

@krassowski

Copy link
Copy Markdown
Collaborator Author

@Carreau the test failures are explained in #1645

@Carreau

Carreau commented May 20, 2026

Copy link
Copy Markdown
Contributor

Ah! thanks, I suppose a better error is always good anyway.

@Carreau Carreau left a comment

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.

+1 to merge and fix the test later if that helps.

@krassowski
krassowski merged commit 912d4d1 into jupyter-server:main May 20, 2026
67 of 68 checks passed
@krassowski
krassowski deleted the fix-save-on-notary-store-failure branch May 26, 2026 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants