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
When a consumer now requeues then the following error will occur:
[error] Consuming interrupted by exception
[Doctrine\DBAL\Exception\NotNullConstraintViolationException]
An exception occurred while executing 'INSERT INTO enqueue (body, headers, properties, priority, queue, redelivered) VALUES (?, ?, ?, ?, ?, ?)' with params ["msg", "{\"content_type\":\"application\\\/json\",\
"message_id\":\"c0165f40-d05c-44f4-a3ae-2d8286a89b86\",\"timestamp\":1513248090,\"reply_to\":null,\"correlation_id\":null}", "{\"enqueue.topic_name\":\"xxx.vote.new\",\"enqueu
e.processor_name\":\"xxx-votes\",\"enqueue.processor_queue_name\":\"default\"}", 2, "enqueue.app.default", 1]:
SQLSTATE[HY000]: General error: 1364 Field 'id' doesn't have a default value
[Doctrine\DBAL\Driver\PDOException]
SQLSTATE[HY000]: General error: 1364 Field 'id' doesn't have a default value
[PDOException]
SQLSTATE[HY000]: General error: 1364 Field 'id' doesn't have a default value
What am I doing wrong or is this bug related to here:
Activity
makasim commentedon Dec 14, 2017
It is a bug, The consumer writes directly to db on requeue hence it does not generate a new uuid.
I don't think it was wise to go with that approach. It would be better to reuse the producer to requeue a message, like in FsConsumer::reject() method
SchumacherFM commentedon Dec 14, 2017
Ok, I'll implement that, until the core DBAL code gets fixed.
makasim commentedon Dec 14, 2017
fixed since https://github.com/php-enqueue/dbal/releases/tag/0.8.11