mirror of https://github.com/apache/activemq.git
https://issues.apache.org/activemq/browse/AMQ-2594 - reverting related https://issues.apache.org/activemq/browse/AMQ-2563 changes, as more refactoring is needed
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@906560 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ab6bd79b26
commit
50dc880345
|
@ -500,6 +500,8 @@
|
|||
|
||||
<!-- used just to test potential memory leaks manually -->
|
||||
<exclude>**/JDBCTestMemory.*</exclude>
|
||||
<!-- exclude until AMQ-2594 is fixed-->
|
||||
<exclude>JDBCNegativeQueueTest</exclude>
|
||||
|
||||
<exclude>**/amq1490/*</exclude>
|
||||
<exclude>**/AMQ1925*</exclude>
|
||||
|
|
|
@ -86,9 +86,7 @@ public abstract class AbstractStoreCursor extends AbstractPendingMessageCursor i
|
|||
clearIterator(true);
|
||||
recovered = true;
|
||||
} else {
|
||||
if (LOG.isDebugEnabled()) {
|
||||
LOG.debug(regionDestination.getActiveMQDestination().getPhysicalName() + " cursor got duplicate: " + message);
|
||||
}
|
||||
LOG.error(regionDestination.getActiveMQDestination().getPhysicalName() + " cursor got duplicate: " + message);
|
||||
storeHasMessages = true;
|
||||
}
|
||||
return recovered;
|
||||
|
@ -162,10 +160,6 @@ public abstract class AbstractStoreCursor extends AbstractPendingMessageCursor i
|
|||
recoverMessage(node.getMessage(),true);
|
||||
lastCachedId = node.getMessageId();
|
||||
} else {
|
||||
if (lastCachedId != null && node.getMessageId().getBrokerSequenceId() < lastCachedId.getBrokerSequenceId()) {
|
||||
lastCachedId = node.getMessageId();
|
||||
setBatch(lastCachedId);
|
||||
}
|
||||
if (cacheEnabled) {
|
||||
cacheEnabled=false;
|
||||
if (LOG.isDebugEnabled()) {
|
||||
|
|
|
@ -231,9 +231,8 @@ public class JDBCMessageStore extends AbstractMessageStore {
|
|||
if (listener.hasSpace()) {
|
||||
Message msg = (Message)wireFormat.unmarshal(new ByteSequence(data));
|
||||
msg.getMessageId().setBrokerSequenceId(sequenceId);
|
||||
if (listener.recoverMessage(msg)) {
|
||||
lastMessageId.set(sequenceId);
|
||||
}
|
||||
listener.recoverMessage(msg);
|
||||
lastMessageId.set(sequenceId);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
|
@ -345,7 +345,7 @@ public class Statements {
|
|||
public String getFindNextMessagesStatement() {
|
||||
if (findNextMessagesStatement == null) {
|
||||
findNextMessagesStatement = "SELECT ID, MSG FROM " + getFullMessageTableName()
|
||||
+ " WHERE CONTAINER=? AND ID >= ? ORDER BY ID";
|
||||
+ " WHERE CONTAINER=? AND ID > ? ORDER BY ID";
|
||||
}
|
||||
return findNextMessagesStatement;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue