Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Messenger] fixed RabbitMQ arguments not passed as integer values#29532
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
[Messenger] fixed RabbitMQ arguments not passed as integer values#29532
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Uh oh!
There was an error while loading.Please reload this page.
| return$queueOptions; | ||
| } | ||
| foreach ($queueOptions['arguments']as$key =>$value) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
you could do
foreach (array('x-max-..', ...) as $key) { if (isset($queueOptions['arguments'][$key]) { ... }}and save a few lines. Also im wondering if it's better to addprivate function getArguments() and normalize when needed (i.e.setArguments(getArguments())
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I refactored that part. I added a constant keeping all the arguments that should be an integer, and later iterating over that. wdyt?
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
alquerci left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
This patch is a good entry point to find solution of the bug.
But it left to provide a scale-able solution forarguments schema.
Status: Needs Work
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
alquerci left a comment• edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
thePanz commentedDec 16, 2018
@alquerci added handling of null and not-integer values, maybe some more tests should be added? |
alquerci left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/Messenger/Tests/Transport/AmqpExt/ConnectionTest.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
alquerci left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
src/Symfony/Component/Messenger/Tests/Transport/AmqpExt/ConnectionTest.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
thePanz commentedDec 17, 2018
@alquerci is there any other change to be done? :) |
alquerci commentedDec 17, 2018 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
It was triggered by my last review pass#29532 (review) Now the patch looks good except for the doubt I have:
|
thePanz commentedJan 16, 2019
Toflar commentedJan 16, 2019
Looks good to me. |
alquerci commentedJan 16, 2019
👌 |
nicolas-grekas commentedJan 29, 2019
Thank you@thePanz. |
… values (thePanz)This PR was submitted for the 4.1 branch but it was merged into the 4.2 branch instead (closes#29532).Discussion----------[Messenger] fixed RabbitMQ arguments not passed as integer values| Q | A| ------------- | ---| Branch? | 4.2| Bug fix? | yes| New feature? | no| BC breaks? | no| Deprecations? | no| Tests pass? | yes| Fixed tickets |#29044| License | MITRabbitMQ expects some arguments to be passed as integer values.Make sure to cast those after parsing the DSN\cc@thomaskonradCommits-------f19c035 [Messenger] fixed RabbitMQ arguments not passed as integer values
Uh oh!
There was an error while loading.Please reload this page.
RabbitMQ expects some arguments to be passed as integer values.
Make sure to cast those after parsing the DSN
\cc@thomaskonrad