criccomini
09/29/2025, 4:46 PMstate.error, which basically totally halts the DB.
4. We handle backpressure internally right now by blocking the put() calls and waiting internally (maybe_apply_backpressure). This feels right to me (from a user perspective), but it further muddies the retry concept since one could imagine throwing a "Backoff" error that is retryable (transient). The ergonomics around that are uglier, though. Or perhaps we want to support both? 🤔
5. I'm starting to think we should use the state.error variable only for permanent errors (i.e. those that require the DB to be closed, data to be repaired, etc). This raises the question about how we get non-fatal errors to users. We probably just want to throw the error once (i.e. mutable take it out of the variable).
6. Clone on the SlateDBError is really annoying (it makes the code more complex). But since we are currently returning the state.error on every user-facing API call, it has to be clone. I am thinking we might be able to get around this somehow, but not sure the best approach . (this feels like it ties in with 5)Pierre
09/29/2025, 4:49 PMcriccomini
09/29/2025, 4:50 PMPierre
09/29/2025, 4:51 PMcriccomini
09/29/2025, 4:51 PMcriccomini
09/29/2025, 4:51 PMPierre
09/29/2025, 4:52 PMPierre
09/29/2025, 4:53 PMPierre
09/29/2025, 4:54 PMcriccomini
09/29/2025, 4:55 PMcriccomini
09/29/2025, 4:55 PMPierre
09/29/2025, 4:59 PMcriccomini
09/29/2025, 5:00 PMcriccomini
09/29/2025, 5:01 PMcriccomini
09/29/2025, 5:01 PMPierre
09/29/2025, 5:01 PMcriccomini
09/29/2025, 5:01 PMcriccomini
09/29/2025, 5:02 PMcriccomini
09/29/2025, 5:02 PMPierre
09/29/2025, 5:02 PMcriccomini
09/29/2025, 5:02 PMPierre
09/29/2025, 5:02 PMcriccomini
09/29/2025, 5:02 PMcriccomini
09/29/2025, 5:02 PMPierre
09/29/2025, 5:02 PMPierre
09/29/2025, 5:03 PMcriccomini
09/29/2025, 5:03 PMcriccomini
09/29/2025, 5:04 PMPierre
09/29/2025, 5:04 PMPierre
09/29/2025, 5:04 PMPierre
09/29/2025, 5:04 PMcriccomini
09/29/2025, 5:05 PMcriccomini
09/29/2025, 5:05 PMPierre
09/29/2025, 5:07 PMPierre
09/29/2025, 5:07 PMPierre
09/29/2025, 5:07 PMcriccomini
09/29/2025, 5:08 PMPierre
09/29/2025, 5:09 PMPierre
09/29/2025, 5:09 PMcriccomini
09/29/2025, 5:10 PMPierre
09/29/2025, 5:11 PMraftario
09/29/2025, 6:02 PMis_transient (just an example for the sake of the argument, i also agree those should probably be handled internally)raftario
09/29/2025, 6:08 PMrs
match error {
SlateDBError::Fenced => {}
e if e.is_transient() => {}
_ => {}
}criccomini
09/29/2025, 6:38 PMTransient error, whcih is what we have now. That led me down the "should this even be exposed?" rabbit hole, though. I think we're converging in keeping the transient stuff internal, which should get rid of some stuff. 😄criccomini
09/29/2025, 6:39 PMcriccomini
09/29/2025, 7:42 PMPierre
09/29/2025, 7:46 PMPierre
09/29/2025, 7:47 PMcriccomini
09/29/2025, 7:47 PMcriccomini
09/29/2025, 7:48 PMPierre
09/29/2025, 9:12 PMPierre
09/29/2025, 9:12 PMPierre
09/29/2025, 9:13 PMPierre
09/29/2025, 9:13 PMPierre
09/29/2025, 9:13 PMcriccomini
09/29/2025, 10:41 PMcriccomini
09/29/2025, 10:42 PMcriccomini
09/29/2025, 10:43 PMcriccomini
09/29/2025, 10:45 PMcriccomini
09/29/2025, 10:50 PMcriccomini
09/29/2025, 10:51 PMcriccomini
09/29/2025, 11:00 PMcriccomini
09/29/2025, 11:01 PMcriccomini
09/30/2025, 1:16 AMcriccomini
09/30/2025, 1:16 AM.resume() that will restart dead bg tasks
2. The allow users to clear bg error states
3. They auto retry for network and retryable IO errors
4. They have tiered error severities (soft, hard, fatal, unrecoverable)
5. They flip the DB to read-only when in error statesRohan
09/30/2025, 6:30 AMPierre
09/30/2025, 8:51 AMRohan
09/30/2025, 3:39 PMcriccomini
09/30/2025, 3:41 PMcriccomini
09/30/2025, 3:41 PMcriccomini
09/30/2025, 3:41 PMcriccomini
09/30/2025, 3:57 PMcriccomini
09/30/2025, 3:58 PMPierre
09/30/2025, 4:19 PMcriccomini
09/30/2025, 6:14 PMcriccomini
09/30/2025, 6:16 PM