[ https://issues.apache.org/jira/browse/QPID-8692?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17945277#comment-17945277 ]
Daniil Kirilyuk commented on QPID-8692: --------------------------------------- Hello, Could you please provide some more details: were messages deleted due to being dequeued / expired? Was broker restarted in process? In Derby log there are visible rollbacks: {code:java} Wed Apr 16 10:04:37 EDT 2025 Thread[#111,yhr-store-1,5,main] (XID = 117512053), (SESSIONID = 18617), (DATABASE = /path), (DRDAID = null), Committing Wed Apr 16 10:04:37 EDT 2025 Thread[#111,yhr-store-1,5,main] (XID = 117512053), (SESSIONID = 18617), (DATABASE = /path), (DRDAID = null), Rolling back Wed Apr 16 10:04:37 EDT 2025 Thread[#48,IO-/127.0.0.1:39656,5,main] (XID = 117512054), (SESSIONID = 18618), (DATABASE = /path), (DRDAID = null), Committing Wed Apr 16 10:04:37 EDT 2025 Thread[#48,IO-/127.0.0.1:39656,5,main] (XID = 117512054), (SESSIONID = 18618), (DATABASE = /path), (DRDAID = null), Rolling back {code} Are there any errors / warnings in broker log matching the same time? Would it be possible to provide broker log for a longer period of time corresponding to the following operations: - successful messages enqueue - messages deletion - failed messages enqueue Kind regards, Daniil > Qpid errors with 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: dev-unsubscr...@qpid.apache.org For additional commands, e-mail: dev-h...@qpid.apache.org