You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit bd0052e
Browse filesBrowse the repository at this point in the historyBrowse files
libsql-server: make the fenced snapshot stream test independent of compaction timing
`snapshot_stream_ends_typed` polled `get_snapshot_file(1)` and unwrapped
its result while the compactor was still writing the first snapshot and
the snapshot merger could be replacing merged files. The lookup lists
the snapshot directory and then opens the chosen file, so under load it
could fail with `NotFound` (directory not created yet, or a file removed
by a merge between the listing and the open) and the test panicked.
Open the stream through the `snapshot` RPC itself in a bounded loop that
treats only "snapshot not found" and the vanished-file error as "not
yet", and asserts that no read lease is held after a failed attempt. An
opened stream holds its file open, so a later merge cannot affect it.
Co-authored-by: Tomasz Szymczyszyn <tomasz.szymczyszyn@shopify.com>
0 commit comments