Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 16943 invoked from network); 30 Apr 2009 13:22:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Apr 2009 13:22:45 -0000 Received: (qmail 37607 invoked by uid 500); 30 Apr 2009 13:22:43 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 37534 invoked by uid 500); 30 Apr 2009 13:22:43 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 37524 invoked by uid 99); 30 Apr 2009 13:22:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Apr 2009 13:22:40 +0000 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED X-Spam-Check-By: apache.org Received-SPF: unknown (nike.apache.org: error in processing during lookup of MMastroianni@glgroup.com) Received: from [207.46.51.80] (HELO SG2EHSOBE002.bigfish.com) (207.46.51.80) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Apr 2009 13:22:30 +0000 Received: from mail9-sin-R.bigfish.com (10.3.40.3) by SG2EHSOBE002.bigfish.com (10.3.40.22) with Microsoft SMTP Server id 8.1.340.0; Thu, 30 Apr 2009 13:22:07 +0000 Received: from mail9-sin (localhost.localdomain [127.0.0.1]) by mail9-sin-R.bigfish.com (Postfix) with ESMTP id C0378E58159 for ; Thu, 30 Apr 2009 13:22:04 +0000 (UTC) X-BigFish: VPS-43(zz542NfadRa0dJ62a3L1419M4015L148cM936fJ9371P1444M19c2k8b9bkzz1202hzz5a6ciz32i6bh61h) X-Spam-TCS-SCL: 0:0 Received: by mail9-sin (MessageSwitch) id 1241097722789279_7202; Thu, 30 Apr 2009 13:22:02 +0000 (UCT) Received: from GLGNYEXSMTP01.glgroup.com (glgnyexsmtp01.glgroup.com [38.112.210.160]) by mail9-sin.bigfish.com (Postfix) with ESMTP id 01441360057 for ; Thu, 30 Apr 2009 13:21:59 +0000 (UTC) Received: from GLGNYEXBE02.glgroup.com ([10.45.50.82]) by GLGNYEXSMTP01.glgroup.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 30 Apr 2009 09:21:56 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: kamikaze Date: Thu, 30 Apr 2009 09:23:57 -0400 Message-ID: <9008E1E80EE8A340BACCA3DFF41B21562A505D@GLGNYEXBE02.glgroup.com> In-Reply-To: <23307098.post@talk.nabble.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: kamikaze thread-index: AcnJP5ZKfEqAbL9USk6vktl0GnSINwAVs9yg From: Michael Mastroianni To: X-OriginalArrivalTime: 30 Apr 2009 13:21:56.0848 (UTC) FILETIME=[A2AFD700:01C9C996] X-Virus-Checked: Checked by ClamAV on apache.org Hi Anmol-- Thanks for bringing up the version I was using: when I switched back to the official jar file, this test passed. The correctness problem only seems to exist in the snapshot I grabbed. The only reason I started using a snapshot was that the jar file had line numbers turned off in the compilation, and no source attachment. Would it be possible for you to make a version of the jar file with line numbers turned on, and a source attachment, for your next release? Without that, it's pretty nearly impossible to debug problems like the NPE regression. regards, Michael -----Original Message----- From: molz [mailto:anmol.bhasin@gmail.com] = Sent: Wednesday, April 29, 2009 10:58 PM To: java-user@lucene.apache.org Subject: RE: kamikaze = Hi Michael, 2 Questions. = 1. What version of Kamikaze are you running with? 2. Can you try the snippet below and let me know if it fails ? I ran it 20 times and it did not fail. Maybe there is some difference in the utitlity methods you have ? I am still trying to track down if anything is off at my end but does not seem to be. public void testMultipleIntersections() = { = ArrayList obs =3D new ArrayList(); = ArrayList docs =3D new ArrayList(); = Random rand =3D new Random(System.currentTimeMillis()); = int maxDoc =3D 350000; = for(int i=3D0; i < 3; ++i) = { = int numdocs =3D rand.nextInt(maxDoc); = ArrayList nums =3D new = ArrayList(); = HashSet seen =3D new HashSet(); = for (int j =3D 0; j < numdocs; j++) = { = int nextDoc =3D rand.nextInt(maxDoc); = if(seen.contains(nextDoc)) = { = while(seen.contains(nextDoc)) = { = nextDoc =3D = rand.nextInt(maxDoc); = } = } = nums.add(nextDoc); = seen.add(nextDoc); = } = Collections.sort(nums); = obs.add(createObs(nums, maxDoc)); = docs.add(createDocSet(nums)); = } = OpenBitSet base =3D obs.get(0); = for(int i =3D 1; i < obs.size(); ++i) = { = base.intersect(obs.get(i)); = } = = AndDocIdSet ands =3D new AndDocIdSet(docs); = long card1 =3D base.cardinality(); = long card2 =3D ands.size(); = System.out.println(card1+":"+card2); assertEquals(card1, card2); = } = private OpenBitSet createObs(ArrayList nums, int maxDoc) { OpenBitSet bitSet =3D new OpenBitSet(maxDoc); for(int num:nums) bitSet.set(num); return bitSet; } = private DocIdSet createDocSet(ArrayList nums) { DocSet p4d =3D DocSetFactory.getDocSetInstance(0, 35000000, 200000, DocSetFactory.FOCUS.OPTIMAL); for(int num:nums) p4d.addDoc(num); return p4d; } I even tried with the following = private DocIdSet createDocSet(ArrayList nums) { P4DDocIdSet p4d =3D new P4DDocIdSet(); for(int num:nums) p4d.addDoc(num); return p4d; } The NPE you mention in the previous emails has been identified as a bug and will be fixed in the next release (in a day or two). = Thanks, Anmol -- = View this message in context: http://www.nabble.com/kamikaze-tp23224760p23307098.html Sent from the Lucene - Java Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org This e-mail message, and any attachments, is intended only for the use of t= he individual or entity identified in the alias address of this message and= may contain information that is confidential, privileged and subject to le= gal restrictions and penalties regarding its unauthorized disclosure and us= e. Any unauthorized review, copying, disclosure, use or distribution is str= ictly prohibited. If you have received this e-mail message in error, please= notify the sender immediately by reply e-mail and delete this message, and= any attachments, from your system. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org