Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 53515 invoked from network); 16 Jun 2010 20:44:46 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Jun 2010 20:44:46 -0000 Received: (qmail 83856 invoked by uid 500); 16 Jun 2010 20:44:45 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 83807 invoked by uid 500); 16 Jun 2010 20:44:44 -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 83798 invoked by uid 99); 16 Jun 2010 20:44:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jun 2010 20:44:44 +0000 X-ASF-Spam-Status: No, hits=-1524.9 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jun 2010 20:44:44 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o5GKiNNo028665 for ; Wed, 16 Jun 2010 20:44:23 GMT Message-ID: <32631235.37461276721063386.JavaMail.jira@thor> Date: Wed, 16 Jun 2010 16:44:23 -0400 (EDT) From: "Tim Smith (JIRA)" To: dev@lucene.apache.org Subject: [jira] Commented: (LUCENE-2501) ArrayIndexOutOfBoundsException in ByteBlockPool.allocSlice In-Reply-To: <4663404.31361276706423419.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LUCENE-2501?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12879489#action_12879489 ] Tim Smith commented on LUCENE-2501: ----------------------------------- will do may take some time before it occurs again also, if this boils down to a synchronization error of some sort, the extra file io done to write the trace info to disk may add some implicit synchronization/slowdown that may result in not being able to reproduce the issue (i've seen this occur on non-lucene related synchronization issues, add the extra debug logging and it never fails anymore) > ArrayIndexOutOfBoundsException in ByteBlockPool.allocSlice > ---------------------------------------------------------- > > Key: LUCENE-2501 > URL: https://issues.apache.org/jira/browse/LUCENE-2501 > Project: Lucene - Java > Issue Type: Bug > Components: Index > Affects Versions: 3.0.1 > Reporter: Tim Smith > > I'm seeing the following exception during indexing: > {code} > Caused by: java.lang.ArrayIndexOutOfBoundsException: 14 > at org.apache.lucene.index.ByteBlockPool.allocSlice(ByteBlockPool.java:118) > at org.apache.lucene.index.TermsHashPerField.writeByte(TermsHashPerField.java:490) > at org.apache.lucene.index.TermsHashPerField.writeVInt(TermsHashPerField.java:511) > at org.apache.lucene.index.FreqProxTermsWriterPerField.writeProx(FreqProxTermsWriterPerField.java:104) > at org.apache.lucene.index.FreqProxTermsWriterPerField.newTerm(FreqProxTermsWriterPerField.java:120) > at org.apache.lucene.index.TermsHashPerField.add(TermsHashPerField.java:468) > at org.apache.lucene.index.DocInverterPerField.processFields(DocInverterPerField.java:174) > at org.apache.lucene.index.DocFieldProcessorPerThread.processDocument(DocFieldProcessorPerThread.java:246) > at org.apache.lucene.index.DocumentsWriter.updateDocument(DocumentsWriter.java:774) > at org.apache.lucene.index.DocumentsWriter.updateDocument(DocumentsWriter.java:757) > at org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:2085) > ... 37 more > {code} > This seems to be caused by the following code: > {code} > final int level = slice[upto] & 15; > final int newLevel = nextLevelArray[level]; > final int newSize = levelSizeArray[newLevel]; > {code} > this can result in "level" being a value between 0 and 14 > the array nextLevelArray is only of size 10 > i suspect the solution would be to either max the level to 10, or to add more entries to the nextLevelArray so it has 15 entries > however, i don't know if something more is going wrong here and this is just where the exception hits from a deeper issue -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org