Commit c427887
committed
bug symfony#59103 [Messenger] ensure exception on rollback does not hide previous exception (nikophil)
This PR was merged into the 6.4 branch.
Discussion
----------
[Messenger] ensure exception on rollback does not hide previous exception
| Q | A
| ------------- | ---
| Branch? | 6.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| License | MIT
Hello,
this is kinda related to doctrine/orm#11230 and doctrine/orm#11646
I propose to use the same logic in `DoctrineTransactionMiddleware` than in doctrine/orm#11646 towards rollback: currently if an error occurs in the rollback (for example, the infamous `SAVEPOINT DOCTRINE_2 does not exist`), the previous error is hidden, because the error should not occur in the `catch`.
ping `@ro0NL`
_EDIt: failure in CI is unrelated to this PR_
Commits
-------
f38d4b0 [Messenger] ensure exception on rollback does not hide previous exceptionFile tree
2 files changed
+34
-8
lines changed- src/Symfony/Bridge/Doctrine
- Messenger
- Tests/Messenger
2 files changed
+34
-8
lines changedLines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| 37 | + | |
| 38 | + | |
35 | 39 | | |
36 | 40 | | |
37 | | - | |
38 | | - | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
46 | 54 | | |
47 | 55 | | |
48 | 56 | | |
Lines changed: 24 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
65 | 62 | | |
66 | 63 | | |
67 | 64 | | |
68 | 65 | | |
69 | 66 | | |
70 | 67 | | |
71 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
72 | 90 | | |
73 | 91 | | |
74 | 92 | | |
| |||
0 commit comments