fix(sqlite-native): restore kv error hook#4635
fix(sqlite-native): restore kv error hook#4635NathanFlurry wants to merge 1 commit into04-12-perf_sqlite-native_avoid_cloning_cached_read_chunksfrom
Conversation
PR Review: fix(sqlite-native): restore kv error hookOverviewThis PR restores the KV error hook in the native SQLite VFS layer and improves error propagation from native Rust storage failures to the JavaScript layer. The changes enable richer error messages when an actor's KV store becomes unavailable (e.g., during actor shutdown). Positive Changes
Issues and Suggestions
Per the SQLite VFS spec, Implicit fall-through after In all three try-catch blocks,
The Clear-on-success could race with JS error handling (
No tests The PR checklist leaves the test box unchecked. Given this is a non-trivial error-path change across the Rust/NAPI/JS boundary, a test that triggers a KV failure and asserts the resulting JS error message contains the expected text would be valuable. |
ceec0d4 to
ff117f9
Compare
6eac78f to
4e380c8
Compare
ff117f9 to
e25c1b6
Compare
7fbbf37 to
fe8cf4f
Compare
e25c1b6 to
532364f
Compare
fe8cf4f to
2be63d0
Compare
532364f to
22df032
Compare
2be63d0 to
a0f54bb
Compare
22df032 to
8793c33
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: