NO-JIRA Removing System.err style debug left by accident

This is non critical. The message is only used by Queue.pause ATM.
This commit is contained in:
Clebert Suconic 2018-07-11 14:34:34 -04:00 committed by Francesco Nigro
parent f126980a30
commit 9a52766e51
1 changed files with 0 additions and 7 deletions

View File

@ -248,8 +248,6 @@ public class QueueImpl extends CriticalComponentImpl implements Queue {
private final ReusableLatch deliveriesInTransit = new ReusableLatch(0); private final ReusableLatch deliveriesInTransit = new ReusableLatch(0);
private volatile boolean caused = false;
private final AtomicLong queueRateCheckTime = new AtomicLong(System.currentTimeMillis()); private final AtomicLong queueRateCheckTime = new AtomicLong(System.currentTimeMillis());
private final AtomicLong messagesAddedSnapshot = new AtomicLong(0); private final AtomicLong messagesAddedSnapshot = new AtomicLong(0);
@ -766,11 +764,6 @@ public class QueueImpl extends CriticalComponentImpl implements Queue {
*/ */
private boolean flushDeliveriesInTransit() { private boolean flushDeliveriesInTransit() {
try { try {
if (!deliveriesInTransit.await(100, TimeUnit.MILLISECONDS)) {
caused = true;
System.err.println("There are currently " + deliveriesInTransit.getCount() + " credits");
}
if (deliveriesInTransit.await(DELIVERY_TIMEOUT)) { if (deliveriesInTransit.await(DELIVERY_TIMEOUT)) {
return true; return true;
} else { } else {