lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benson Margulies <bimargul...@gmail.com>
Subject Seeming bug in ConcurrentUpdateSolrServer
Date Wed, 29 May 2013 17:59:56 GMT
The comment here is clearly wrong, since there is no division by two.

I think that the code is wrong, because this results in not starting
runners when it should start runners. Am I misanalyzing?

if (runners.isEmpty() || (queue.remainingCapacity() < queue.size() // queue

      // is

      // half

      // full

      // and

      // we

      // can

      // add

      // more

      // runners
              && runners.size() < threadCount)) {

Mime
View raw message