Reduce serializability of project delete (#11628)
This may reduce locks when deleting projects. Release Notes: - N/A
This commit is contained in:
parent
aa5113cd92
commit
a3e75540af
3 changed files with 37 additions and 21 deletions
|
@ -415,7 +415,7 @@ impl Database {
|
|||
if is_serialization_error(error) && prev_attempt_count < SLEEPS.len() {
|
||||
let base_delay = SLEEPS[prev_attempt_count];
|
||||
let randomized_delay = base_delay * self.rng.lock().await.gen_range(0.5..=2.0);
|
||||
log::info!(
|
||||
log::warn!(
|
||||
"retrying transaction after serialization error. delay: {} ms.",
|
||||
randomized_delay
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue