lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dawid Weiss <dawid.we...@cs.put.poznan.pl>
Subject Re: NoSuchElement exc from randomizedtesting onSlaveIdle ...
Date Fri, 14 Dec 2012 12:17:16 GMT
Don't know what caused it -- but is seems impossible from Java centric
point of view:

[junit4:junit4] Caused by: java.util.NoSuchElementException
[junit4:junit4]         at java.util.ArrayDeque.removeFirst(ArrayDeque.java:289)
[junit4:junit4]         at java.util.ArrayDeque.pop(ArrayDeque.java:518)
[junit4:junit4]         at
com.carrotsearch.ant.tasks.junit4.JUnit4$1.onSlaveIdle(JUnit4.java:800)

this ArrayDeque is used from a block of code that does this:

          if (stealingQueue.isEmpty()) {
            slave.finished();
          } else {
            String suiteName = stealingQueue.pop();
            slave.newSuite(suiteName);
          }

Nothing else is removing elements from the queue. The code is
(theoretically) a critical section (it's guava's eventbus) so the
error above should never occur. Go figure.

Dawid

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message