more house keeping
This commit is contained in:
@@ -98,8 +98,15 @@ batch_write_item :: proc(
|
||||
delete(failed_requests)
|
||||
return result, var_err
|
||||
|
||||
case .RocksDB_Error, .Item_Not_Found, .Table_Not_Found:
|
||||
// Transient/throttling errors — add to unprocessed
|
||||
case .Table_Not_Found:
|
||||
// Non-existent table is a hard request failure, not a retryable condition.
|
||||
// DynamoDB returns ResourceNotFoundException for the whole request.
|
||||
batch_write_result_destroy(&result)
|
||||
delete(failed_requests)
|
||||
return result, .Table_Not_Found
|
||||
|
||||
case .RocksDB_Error, .Item_Not_Found:
|
||||
// Genuinely transient/infrastructure errors — add to UnprocessedItems.
|
||||
failed_item := item_deep_copy(req.item)
|
||||
append(&failed_requests, Write_Request{
|
||||
type = req.type,
|
||||
|
||||
Reference in New Issue
Block a user