[
https://issues.apache.org/jira/browse/QPID-8692?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daniil Kirilyuk updated QPID-8692:
----------------------------------
Summary: [Broker-J] Failed to enqueue messages caused by duplicate key
value in on 'QPID_QUEUE_ENTRIES' (was: Qpid errors with Failed to enqueue
messages caused by duplicate key value in on 'QPID_QUEUE_ENTRIES')
> [Broker-J] Failed to enqueue messages caused by duplicate key value in on
> 'QPID_QUEUE_ENTRIES'
> ----------------------------------------------------------------------------------------------
>
> Key: QPID-8692
> URL: https://issues.apache.org/jira/browse/QPID-8692
> Project: Qpid
> Issue Type: Bug
> Components: Broker-J
> Affects Versions: qpid-java-broker-9.2.0
> Environment: java version : openjdk 21.0.6 2025-01-21 LTS
> Red Hat Enterprise Linux 8.10
> qpid broker: qpid-broker-9.2.0
> Reporter: Vijay Danda
> Priority: Major
> Attachments: derby_logs_message5119.txt, qpid_log.txt
>
>
> Use case: We use Qpid instance to drop email messages in to the queue.
> Clients would connect to qpid instance, reads those email messages and sends
> it to SMTP server.
> Issue: When sending emails on second day, we saw the following error in qpid
> logs
> {code:java}
> java.sql.BatchUpdateException: The statement was aborted because it would
> have caused a duplicate key value in a unique or primary key constraint or
> unique index identified by 'SQL200930134600720' defined on
> 'QPID_QUEUE_ENTRIES'.
> at
> org.apache.derby.impl.jdbc.EmbedStatement.executeLargeBatch(Unknown
> Source){code}
> Complete qpid logs are attached. See qpid_log.txt
> Test case:
> We sent around 5000 email messages. We observed, for each message there is a
> insert in to QPID_QUEUE_ENTRIES statement and sub sequent delete from
> QPID_QUEUE_ENTRIES. However, when we connect to database and see
> QPID_QUEUE_ENTRIES table there are still around 1520 records in the table.
> If we send more messages the next day, we are running in to above error
> message. Attached derby_logs_message5119.txt derby log with trace statements
> for message id 5119.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]