polarsignals / frostdb

❄️ Coolest database around 🧊 Embeddable column database written in Go.
Apache License 2.0
1.27k stars 65 forks source link

[WIP/DNM] table: fix behavior on new table block error #915

Closed asubiotto closed 3 days ago

asubiotto commented 1 month ago

Table block creation can fail for a variety of reasons, but we were only handling the happy case. This commit only overwrites the active block if the new table block was successfully created, and logs a noop record to the WAL on error to not block subsequent wal records logs.

Bug found with DST.