You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Since the FailoverTransport extends the RoundRobinTransport where the next transport is randomly chosen, this behaviour also applies when configuring failover when sending chat or text messages. The expected behaviour would be: The first transport is always used unless sending fails.
…ansport (jschaedl)
This PR was merged into the 5.2 branch.
Discussion
----------
[Notifier] Make FailoverTransport always pick the first transport
| Q | A
| ------------- | ---
| Branch? | 5.2
| Bug fix? | yes
| New feature? | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets | Fix#40895 <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License | MIT
| Doc PR | - <!-- required for new features -->
<!--
Replace this notice by a short README for your feature/bugfix. This will help people
understand your PR and can be used as a start for the documentation.
Additionally (see https://symfony.com/releases):
- Always add tests and ensure they pass.
- Never break backward compatibility (see https://symfony.com/bc).
- Bug fixes must be submitted against the lowest maintained branch where they apply
(lowest branches are regularly merged to upper ones so they get the fixes too.)
- Features and deprecations must be submitted against branch 5.x.
- Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry
-->
Commits
-------
337f828 Make FailoverTransport always pick the first transport
Symfony version(s) affected: >= 5.0
Description
Since the
FailoverTransport
extends theRoundRobinTransport
where the next transport is randomly chosen, this behaviour also applies when configuring failover when sending chat or text messages. The expected behaviour would be: The first transport is always used unless sending fails.How to reproduce
Configure failover transports as stated in the docs: https://symfony.com/doc/current/notifier.html#configure-to-use-failover-or-round-robin-transports
Possible Solution
Apply a similar fix as for the Mailer failover transport in #37611
The text was updated successfully, but these errors were encountered: