Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Messenger][DoctrineBridge] Throws UnrecoverableMessageHandlingException when passed invalid entity manager name#31482

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:4.3fromKoc:feature/tune-doctrine-middlewares
May 21, 2019

Conversation

@Koc
Copy link
Contributor

@KocKoc commentedMay 12, 2019

QA
Branch?4.3
Bug fix?yes
New feature?no
BC breaks?not sure
Deprecations?no
Tests pass?Waiting for Travis
Fixed tickets-
LicenseMIT
Doc PR-
  1. ThrowsUnrecoverableMessageHandlingException and do not retry messages if middlewares missconfigured
  2. getManager() doesn't return null. Actuallyit throws\InvalidArgumentException in requested entity manager not exists.

Not sure, should this changes considered as BC-break.

Also I can extract abstract Doctrine middleware but not sure what branch should I use for it? Master or 4.3?

@KocKoc requested a review fromsroze as acode ownerMay 12, 2019 12:18
@sroze
Copy link
Contributor

Well.. it is actually recoverable because if this happens: 1) you see the errors somewhere (Sentry, Bugsnag, etc...), 2) you will fix it and 3) you will redeploy. At no point in this you expect the infrastructure to destroy these messages (which is what it means to have an unrecoverable error).

@Koc
Copy link
ContributorAuthor

Koc commentedMay 12, 2019

I've opened this PR because@Tobion suggested make this change in related PR#31334 (comment) .

Not sure that developer will have enough time to fix problem and redeploy before messages goes to failed transport after N retries. And there is possibility to retry message from failed transport since Symfony 4.3.

But in any casegetManager() doesn't return null and check should be reworked.

@Tobion
Copy link
Contributor

Recoverable to me means that it is a temporary problem that might fix itself by just retrying. If it's a coding problem auto-retrying does not make sense. If you argue it's recoverable because you can fix it manually, then where is the difference between recoverable and unrecoverable? Everything is recoverable then if you change code...

Koc reacted with thumbs up emoji

@nicolas-grekasnicolas-grekas added this to the4.3 milestoneMay 20, 2019
Copy link
Member

@weaverryanweaverryan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM

If you have the failure transport configured, the message will immediately (after 1 try) go to the failure transport.Then, in theory, the developer would have time to look at that message, fix the problem, deploy, and retry it.

@KocKocforce-pushed thefeature/tune-doctrine-middlewares branch fromcd87051 tod92efc0CompareMay 21, 2019 00:22
@fabpot
Copy link
Member

Tests are broken and should be fixed before merging (looks like a constraint should be changed in the Doctrine bridge).

@KocKocforce-pushed thefeature/tune-doctrine-middlewares branch fromd92efc0 toc4eca27CompareMay 21, 2019 06:10
@Koc
Copy link
ContributorAuthor

Koc commentedMay 21, 2019

@fabpot thank you for suggestion, now fixed.

@fabpot
Copy link
Member

Thank you@Koc.

@fabpotfabpot merged commitc4eca27 intosymfony:4.3May 21, 2019
fabpot added a commit that referenced this pull requestMay 21, 2019
…dlingException when passed invalid entity manager name (Koc)This PR was merged into the 4.3 branch.Discussion----------[Messenger][DoctrineBridge] Throws UnrecoverableMessageHandlingException when passed invalid entity manager name| Q             | A| ------------- | ---| Branch?       | 4.3| Bug fix?      | yes| New feature?  | no| BC breaks?    | not sure| Deprecations? | no| Tests pass?   | Waiting for Travis| Fixed tickets | -| License       | MIT| Doc PR        | -1. Throws `UnrecoverableMessageHandlingException` and do not retry messages if middlewares missconfigured2.  `getManager()` doesn't return null. Actually [it throws](https://github.com/doctrine/persistence/blob/master/lib/Doctrine/Persistence/AbstractManagerRegistry.php#L144-L160) `\InvalidArgumentException` in requested entity manager not exists.Not sure, should this changes considered as BC-break.Also I can extract abstract Doctrine middleware but not sure what branch should I use for it? Master or 4.3?Commits-------c4eca27 Throws UnrecoverableMessageHandlingException when passed invalid entity manager name for Doctrine middlewares
@fabpotfabpot mentioned this pull requestMay 22, 2019
@KocKoc deleted the feature/tune-doctrine-middlewares branchJuly 16, 2019 20:06
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

@weaverryanweaverryanweaverryan approved these changes

@srozesrozeAwaiting requested review from sroze

Assignees

No one assigned

Projects

None yet

Milestone

4.3

Development

Successfully merging this pull request may close these issues.

8 participants

@Koc@sroze@Tobion@fabpot@weaverryan@javiereguiluz@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp