mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-09-24 06:36:12 +00:00
* StoredQueue
improved debugging output for seldom-seen internal inconsistency
This commit is contained in:
@@ -23,6 +23,7 @@ import java.io.Serializable;
|
||||
import java.util.AbstractQueue;
|
||||
import java.util.Iterator;
|
||||
import java.util.concurrent.atomic.AtomicLong;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
|
||||
@@ -123,9 +124,11 @@ implements Serializable {
|
||||
return head;
|
||||
}
|
||||
// ERROR; should never be null with headIndex < tailIndex
|
||||
logger.severe("unexpected empty index of StoredQueue: "
|
||||
logger.log(Level.SEVERE,
|
||||
"unexpected empty index of StoredQueue("
|
||||
+ queueDb.getDatabaseName()+"): "
|
||||
+ headIndex.get() + " (tailIndex: "
|
||||
+ tailIndex.get());
|
||||
+ tailIndex.get(),new Exception());
|
||||
headIndex.incrementAndGet();
|
||||
}
|
||||
return head;
|
||||
|
||||
Reference in New Issue
Block a user