Closed
Description
Symfony version(s) affected: 5.0.9
Description
DoctrineTransport
utilizes executeQuery
to write a message to the database. executeQuery
is meant to be read-only, and when using a MasterSlaveConnection
, this can cause the message to be written to a read-only database.
How to reproduce
- Configure a
MasterSlaveConnection
with a slave going to a read-only database. - Send a message to a
DoctrineTransport
configured transport.
Possible Solution
Utilize executeUpdate
, which is intended for INSERT
commands.
Additional context
Courtesy of @christickner in Symfony Devs #support
Metadata
Metadata
Assignees
Labels
Ideal for your first contribution! (some Symfony experience may be required)Ideal for your first contribution! (some Symfony experience may be required)Issues and PRs which are looking for volunteers to complete them.Issues and PRs which are looking for volunteers to complete them.