requeues aren't absurd in a live net where connectivity sometimes fails (duh)
This commit is contained in:
@ -117,13 +117,6 @@ public abstract class TransportImpl implements Transport {
|
|||||||
_context.statManager().addRateData("transport.expiredOnQueueLifetime", lifetime, lifetime);
|
_context.statManager().addRateData("transport.expiredOnQueueLifetime", lifetime, lifetime);
|
||||||
|
|
||||||
if (allowRequeue) {
|
if (allowRequeue) {
|
||||||
if (true) {
|
|
||||||
if (_log.shouldLog(Log.ERROR))
|
|
||||||
_log.error("wtf, requeueing message " + msg.getMessageId() + " of type " + msg.getMessageType(),
|
|
||||||
new Exception("requeued by"));
|
|
||||||
log = true;
|
|
||||||
msg.discardData();
|
|
||||||
} else {
|
|
||||||
if ( (msg.getExpiration() <= 0) || (msg.getExpiration() > _context.clock().now()) ) {
|
if ( (msg.getExpiration() <= 0) || (msg.getExpiration() > _context.clock().now()) ) {
|
||||||
// this may not be the last transport available - keep going
|
// this may not be the last transport available - keep going
|
||||||
_context.outNetMessagePool().add(msg);
|
_context.outNetMessagePool().add(msg);
|
||||||
@ -142,7 +135,6 @@ public abstract class TransportImpl implements Transport {
|
|||||||
log = true;
|
log = true;
|
||||||
msg.discardData();
|
msg.discardData();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
if (_log.shouldLog(Log.INFO))
|
if (_log.shouldLog(Log.INFO))
|
||||||
_log.info("Failed and no requeue allowed for a "
|
_log.info("Failed and no requeue allowed for a "
|
||||||
|
Reference in New Issue
Block a user