Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 30555 invoked from network); 29 Nov 2010 20:46:43 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Nov 2010 20:46:43 -0000 Received: (qmail 48963 invoked by uid 500); 29 Nov 2010 20:46:41 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 48910 invoked by uid 500); 29 Nov 2010 20:46:41 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 48903 invoked by uid 99); 29 Nov 2010 20:46:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Nov 2010 20:46:41 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of earwin@gmail.com designates 209.85.214.176 as permitted sender) Received: from [209.85.214.176] (HELO mail-iw0-f176.google.com) (209.85.214.176) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Nov 2010 20:46:35 +0000 Received: by iwn35 with SMTP id 35so195758iwn.35 for ; Mon, 29 Nov 2010 12:46:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=rOVngD5VVd2rtqsDGRK+35B/YHfEuLtGxwaUyOYlht4=; b=H4v/6+qMZCRVBTn9NJ2qcSccSsKPDD8Ahttiue9d5VQ2A8R/t3KxO8SyjrhGzSYKgJ PfdtIReEqV0L4Q6ph00W/mnwq7usZk0idrB8CA/ADwxTTxNXnuuBiKWvPHh1h9OlQvXB 0EKfAatpf+H6NtaZmmsdvDQ3mPrmVcT0F1PLo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=iflKig6RyoRrcJds3wIJ/zlAJeMnXO6c9Lf7bQDoB8UVp1Y7NaGvYqqL+npKRjuY1o ckDI/wnSVBrMtutm7pJnwtg7gTqGHMKUyk7hc0pt9cUhUrtnWb8WbqWO2nlWassECrV7 hRyftMU+k2E8HYgKeA6/FtJrkP3jM20if7nls= MIME-Version: 1.0 Received: by 10.231.174.131 with SMTP id t3mr6143487ibz.131.1291063574329; Mon, 29 Nov 2010 12:46:14 -0800 (PST) Received: by 10.231.16.195 with HTTP; Mon, 29 Nov 2010 12:46:14 -0800 (PST) In-Reply-To: References: <525940760.11261291036412560.JavaMail.hudson@aegis> Date: Mon, 29 Nov 2010 23:46:14 +0300 Message-ID: Subject: Re: Lucene-Solr-tests-only-3.x - Build # 1950 - Failure From: Earwin Burrfoot To: dev@lucene.apache.org, yonik@lucidimagination.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Or you can make threadlocal RNGs. On Mon, Nov 29, 2010 at 23:20, Yonik Seeley wr= ote: > On Mon, Nov 29, 2010 at 2:52 PM, Michael McCandless > wrote: >> Though why doesn't the random seed reproduce it? > > OK, I think I see why. > For reproducibility, the same random number generator should never be > used across different threads. > RandomIndexWriter does though... (via MockIndexWriter.testPoint). > > =C2=A0public RandomIndexWriter(Random r, Directory dir, IndexWriterConfig > c) throws IOException { > =C2=A0 =C2=A0this.r =3D r; > =C2=A0 =C2=A0w =3D new MockIndexWriter(r, dir, c); > > So something like this should work? > > =C2=A0 =C2=A0w =3D new MockIndexWriter(new Random(r.nextInt()), dir, c); > > > -Yonik > http://www.lucidimagination.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org > For additional commands, e-mail: dev-help@lucene.apache.org > > --=20 Kirill Zakharenko/=D0=9A=D0=B8=D1=80=D0=B8=D0=BB=D0=BB =D0=97=D0=B0=D1=85= =D0=B0=D1=80=D0=B5=D0=BD=D0=BA=D0=BE (earwin@gmail.com) Phone: +7 (495) 683-567-4 ICQ: 104465785 --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org