"Doron Cohen" <[EMAIL PROTECTED]> wrote:
> Mike, I didn't anticipate this use case and I think it
> would not work correctly. I'll look into this.
>
> Anyhow, I think it would not work as you expect.
>
> It seems what you want is to have 4 threads, adding docs in
> parallel, until the doc maker is exhausted.
>
> But this line:
> {[AddDoc(4000)]: 4} : *
>
> Reads as -
> Repeatedly until exhausted:
> Create & Start 4 threads (in parallel),
> each adding 1 doc of size 4000;
> Wait for them 4 threads to complete.
>
> Now, this is not what you are after, is it? I think
> you would like just 4 threads to do all the work.
Ahh, right. I had the two tasks "inverted".
> It seems what you are really after is this:
> [ { AddDoc } : * ] : 4
>
> This reads as:
> Create 4 threads, each adding docs until exhaustion.
>
> Since there is a single system-benchmark-wide doc-maker, all 4
> threads use it, and when it is exhausted, all 4 will be done.
>
> I tried this way and it works as I expected it to (except
> for that DateFormat bug, see below). Can you try like this
> and let me know if it works for you.
Super, I will test this one! Thanks.
> I think your variation of this exposes a bug in the
> benchmark - it will just loop forever because the parallel
> sequence would mask the exhaustion from the outer sequential
> sequence. I opened LUCENE-941 for this, and looking into it
OK, thanks. The benchmark framework is very rich/expressive!
Mike
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]