Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 88171200BFE for ; Mon, 16 Jan 2017 23:32:08 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 86946160B41; Mon, 16 Jan 2017 22:32:08 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id CE366160B28 for ; Mon, 16 Jan 2017 23:32:07 +0100 (CET) Received: (qmail 86225 invoked by uid 500); 16 Jan 2017 22:32:06 -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 86213 invoked by uid 99); 16 Jan 2017 22:32:06 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jan 2017 22:32:06 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id BD1CBC1056 for ; Mon, 16 Jan 2017 22:32:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.001 X-Spam-Level: X-Spam-Status: No, score=-0.001 tagged_above=-999 required=6.31 tests=[SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id xNCrJ9jHXj5M for ; Mon, 16 Jan 2017 22:32:04 +0000 (UTC) Received: from mail.sd-datasolutions.de (serv2.sd-datasolutions.de [85.25.204.22]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 44DA35F610 for ; Mon, 16 Jan 2017 22:32:04 +0000 (UTC) Received: from VEGA (p200300C103CB80014928188DDCC2E11E.dip0.t-ipconnect.de [IPv6:2003:c1:3cb:8001:4928:188d:dcc2:e11e]) by mail.sd-datasolutions.de (Postfix) with ESMTPSA id 7158716F802A3 for ; Mon, 16 Jan 2017 22:31:52 +0000 (UTC) X-NSA-Greeting: Dear NSA, have fun with reading and analyzing this e-mail! From: "Uwe Schindler" To: References: In-Reply-To: Subject: RE: Weird corruption symptom, not making sense Date: Mon, 16 Jan 2017 23:31:49 +0100 Message-ID: <014b01d27048$54624bd0$fd26e370$@thetaphi.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 16.0 Content-Language: de Thread-Index: AQIujHPerH9ISnJ1ZYY1LVvJ6osrU6CDd6Yg archived-at: Mon, 16 Jan 2017 22:32:08 -0000 ...or a JVM bug. We have seen those around PagedBytes in the past. What = Java version? ----- Uwe Schindler Achterdiek 19, D-28357 Bremen http://www.thetaphi.de eMail: uwe@thetaphi.de > -----Original Message----- > From: Trejkaz [mailto:trejkaz@trypticon.org] > Sent: Monday, January 16, 2017 11:27 PM > To: Lucene Users Mailing List > Subject: Weird corruption symptom, not making sense >=20 > I have this thing where our UninvertingReader is getting an > ArrayIndexOutOfBoundsException in production. I'm sure the index is > corrupt, but I tried investigating the code and it still seems a bit > odd. >=20 > Caused by: java.lang.ArrayIndexOutOfBoundsException: -48116 > at org.apache.lucene.util.PagedBytes$Reader.fill(PagedBytes.java:118) > at OurFieldCacheImpl.BinaryDocValuesImpl.get(SourceFile:844) >=20 > In BinaryDocValuesImpl : >=20 > return new BinaryDocValues() > { > @Override > public BytesRef get(int docID) > { > int pointer =3D (int) docToOffset.get(docID); > if (pointer =3D=3D 0) { > term.length =3D 0; > } else { > bytes.fill(term, pointer); > } > return term; > } > }; >=20 > So "pointer" is the negative value presumably? Implying that somehow a > negative value got into the docToOffset mappings. > The value it's putting in comes from: >=20 > long pointer =3D bytes.copyUsingLengthPrefix(term); > postingsEnum =3D termsEnum.postings(postingsEnum, > PostingsEnum.NONE); > while (true) { > int docID =3D postingsEnum.nextDoc(); > if (docID =3D=3D DocIdSetIterator.NO_MORE_DOCS) { > break; > } > docToOffset.set(docID, pointer); > } >=20 > So it seems like bytes.copyUsingLengthPrefix can return a negative > value? But I looked in PagedBytes and couldn't see an obvious way to > get a negative value. >=20 > Is it possible some kind of overflow is happening here? >=20 > TX >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org