Sometimes we get an error applying partially buffered changes because there's a schema change that doesn't fit or some other random retryable error.
Instead of forgetting about the buffered change (Corrosion only forgets in-memory, still kept in the DB), we should re-queue them somewhere to try again later. For schema errors like constraint failed, we could retry applying buffered changes when there's a new schema applied.
Sometimes we get an error applying partially buffered changes because there's a schema change that doesn't fit or some other random retryable error.
Instead of forgetting about the buffered change (Corrosion only forgets in-memory, still kept in the DB), we should re-queue them somewhere to try again later. For schema errors like
constraint failed
, we could retry applying buffered changes when there's a new schema applied.For other errors, maybe just a short timer.