> > Ah, ok! I just remembered that some of this stuff was exploding memory > and Uwe reverted it so that Jenkins could do its job. Don't know if it > was a bug or something else - had very little time to look into it.
That was a bug on my part. :-( This should fix it, though. > >> TBH, I'm not even sure we need a ThreadLocal random here, though. Are there >> likely to be thread-safety issues when generating random numbers? > > I think they may be using it to avoid synchronizations on the default > Random implementation. I honestly don't think this is going to be a > problem in practice if you replaced the ThreadLocal random with just a > Random (even if there are conflicts adding random + random noise = > random noise). If the rate of updates is really high, or if you want a > better random generator than the default (which you may want to > consider) then copy a random generator from commons math and voila, > should be fine? The updates are per-request, which could be pretty high, I suppose. I'll have a look at commons-math, anyway. Thanks! Alan Woodward a...@flax.co.uk --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org