Skip to content

Prevent hide real exception when handler from some reason close transaction/connection#14

Open
lljaworski wants to merge 1 commit into
symfony:7.0from
lljaworski:fix_hidding_exception
Open

Prevent hide real exception when handler from some reason close transaction/connection#14
lljaworski wants to merge 1 commit into
symfony:7.0from
lljaworski:fix_hidding_exception

Conversation

@lljaworski
Copy link
Copy Markdown

In some cases when the handler closes a connection or transaction the real exception is hidden and logged only last not meaning exception without real reason. There is a need to catch all errors thrown by doctrine and enhance them to be the right ones.
The exact issue isn't visible in CLI and other loggers like Sentry or similar.

@devnix
Copy link
Copy Markdown

devnix commented Jul 15, 2024

Probably never gonna get reviewed/merged, see symfony/symfony#57709

@cr-solutions
Copy link
Copy Markdown

Why this is open so long?
I can confirm, that we getting in some situations also the error:

"Transaction commit failed because the transaction has been marked for rollback only"

Is there a official way to prevent it without the fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants