Skip to content

Align startup checks with primary instances - #5927

Open
rbev wants to merge 2 commits into
masterfrom
startup-manifest-guard
Open

rbev wants to merge 2 commits into
masterfrom
startup-manifest-guard

Conversation

@rbev

@rbev rbev commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Aligned Audit manifest discovery with the Error instance: each manifest is read and deserialized independently, so a malformed or unreadable file is logged with its path and does not prevent later persisters from loading. The existing outer catches still handle failures while enumerating manifest locations. Empty or invalid JSON is explicitly rejected rather than adding a null manifest.

Added Audit regression coverage for a legacy manifest without an assembly alongside later persisters, and for a malformed manifest followed by a valid persister. Tests call the shared loading method through an internal test assembly grant; public discovery APIs are unchanged.

Aligned the behavior of SupportsMaintenanceMode contract: RavenDB advertises support, InMemory does not, and the Audit maintenance command rejects unsupported persisters before building settings or starting a host. Added a focused test for the InMemory rejection.

Related PRs

@rbev rbev changed the title Replicate more robust manifest loading from error instance Align startup checks with primary instances Sep 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant