Skip to content

Commit e2c1bb7

Browse files
Instead of throwing exception - just log
If a callback in commit throws an excecption, we mustn't attempt a rollback on an already commited transaction. (Which would cause an “Asymmetric transaction rollback" error) - so rather than throwing the exception we will just log it.
1 parent 0c886ca commit e2c1bb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/Model/ResourceModel/AbstractResource.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function commit()
9191
call_user_func($callback);
9292
}
9393
} catch (\Exception $e) {
94-
throw $e;
94+
$this->logger->critical($e);
9595
}
9696
}
9797
return $this;

0 commit comments

Comments
 (0)