From 60d10e1865481944d8560bfbeea7fdd474ec8fff Mon Sep 17 00:00:00 2001 From: Keith Wall Date: Fri, 8 Aug 2014 15:43:43 +0000 Subject: QPID-5979: Derby/JDBC logs unnecessary "message not found" at WARN on rollback. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1616806 13f79535-47bb-0310-9956-ffa450edef68 --- .../qpid/server/store/berkeleydb/AbstractBDBMessageStore.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'qpid/java/bdbstore/src/main') diff --git a/qpid/java/bdbstore/src/main/java/org/apache/qpid/server/store/berkeleydb/AbstractBDBMessageStore.java b/qpid/java/bdbstore/src/main/java/org/apache/qpid/server/store/berkeleydb/AbstractBDBMessageStore.java index 338882e6df..835846a5ec 100644 --- a/qpid/java/bdbstore/src/main/java/org/apache/qpid/server/store/berkeleydb/AbstractBDBMessageStore.java +++ b/qpid/java/bdbstore/src/main/java/org/apache/qpid/server/store/berkeleydb/AbstractBDBMessageStore.java @@ -388,10 +388,11 @@ public abstract class AbstractBDBMessageStore implements MessageStore OperationStatus status = getMessageMetaDataDb().delete(tx, key); if (status == OperationStatus.NOTFOUND) { - getLogger().info( - "Message not found (attempt to remove failed - probably application initiated rollback) " - + - messageId); + if (getLogger().isDebugEnabled()) + { + getLogger().debug("Message id " + messageId + + " not found (attempt to remove failed - probably application initiated rollback)"); + } } if (getLogger().isDebugEnabled()) @@ -426,7 +427,7 @@ public abstract class AbstractBDBMessageStore implements MessageStore catch(DatabaseException e2) { getLogger().warn( - "Unable to abort transaction after LockConflictExcption on removal of message with id " + "Unable to abort transaction after LockConflictException on removal of message with id " + messageId, e2); // rethrow the original log conflict exception, the secondary exception should already have -- cgit v1.2.1