Entity Storage ↔ Database Transaction Retries: Avoiding Duplicate Writes on Retry
Entity Storage ↔ Database Transaction Retries When Drupal saves an entity, the SqlContentEntityStorage wraps the INSERT or UPDATE in a database transaction and retries the operation on deadlock (SQLSTATE 40001) or lock wait timeout (SQLSTATE HY000) up to the configured database.retry_count attempts. Each retry re‑serializes the entity fields and re‑executes