fix(sqlite): quiet startup database miss#5005
Conversation
|
🚅 Deployed to the rivet-pr-5005 environment in rivet-frontend
|
This stack of pull requests is managed by Graphite. Learn more about stacking. |
PR #5005 Review: fix(sqlite): quiet startup database missOverviewThis PR downgrades a noisy tracing::error! to tracing::debug! for the case where a SqliteGetPagesRequest returns DatabaseNotFound during actor startup (when both expected_generation and expected_head_txid are None). This is an expected condition - a brand-new actor querying pages before it has ever committed state - not a real error. The response to the client is unchanged (SqliteErrorResponse is still returned), so VFS behavior is unaffected. This is a pure observability fix. Code QualityThe implementation is clean and follows existing conventions:
One minor observation: expected_generation is currently always None at all three call sites in depot-client/src/vfs.rs (hardcoded). So expected_generation.is_none() is always true in practice and the condition is effectively gated only on expected_head_txid.is_none() && DatabaseNotFound. Keeping the generation check in is good defensive forward-compatibility - if generation tracking is added to the VFS later, the predicate will naturally tighten without needing a revisit. Potential Issues
Suggestions
SummaryCorrect, well-scoped fix. The logic is sound, the helper is clearly named, and the response behavior is unchanged. The only real discussion point is whether debug! should be trace! - otherwise this is good to go. |
d764db4 to
49f9288
Compare
30f3c06 to
f63add8
Compare
49f9288 to
e8f7214
Compare
e8f7214 to
4e070ea
Compare
f63add8 to
71e98d4
Compare
71e98d4 to
fd0ce61
Compare
4e070ea to
16c6a31
Compare

Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context.
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Checklist: