Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5DDD511245 for ; Thu, 15 May 2014 10:07:42 +0000 (UTC) Received: (qmail 87301 invoked by uid 500); 10 May 2014 22:13:38 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 87228 invoked by uid 500); 10 May 2014 22:13:38 -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 87220 invoked by uid 99); 10 May 2014 22:13:38 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 May 2014 22:13:38 +0000 Date: Sat, 10 May 2014 22:13:38 +0000 (UTC) From: "Uwe Schindler (JIRA)" To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (LUCENE-5658) IllegalArgumentException from ByteBufferIndexInput.buildSlice 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-5658?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13993128#comment-13993128 ] Uwe Schindler commented on LUCENE-5658: --------------------------------------- bq. I checked the stacktrace against trunk, but not all the lines align (e.g. at org.apache.lucene.store.MMapDirectory$1.openFullSlice(MMapDirectory.java:211) is only in 4.8), but I haven't dug deeper yet... We removed that on trunk, because it just calls IndexInput.clone(). We will remove the whole Slicer in trunk (I think Robert has a patch) and just provide a method on IndexInput to clone a a slice. The issue here is not slicing, its happening on openFullSlice() delegating to clone(). This method is called millions of times while searching an index for opening TermsEnums,... > IllegalArgumentException from ByteBufferIndexInput.buildSlice > ------------------------------------------------------------- > > Key: LUCENE-5658 > URL: https://issues.apache.org/jira/browse/LUCENE-5658 > Project: Lucene - Core > Issue Type: Bug > Components: core/store > Affects Versions: 4.8 > Reporter: Shai Erera > > I've received an email with the following stacktrace: > {noformat} > Exception in thread "Lucene Merge Thread #73" org.apache.lucene.index.MergePolicy$MergeException: java.lang.IllegalArgumentException > at org.apache.lucene.index.ConcurrentMergeScheduler.handleMergeException(ConcurrentMergeScheduler.java:545) > at org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:518) > Caused by: java.lang.IllegalArgumentException > at java.nio.Buffer.limit(Buffer.java:278) > at org.apache.lucene.store.ByteBufferIndexInput.buildSlice(ByteBufferIndexInput.java:259) > at org.apache.lucene.store.ByteBufferIndexInput.buildSlice(ByteBufferIndexInput.java:230) > at org.apache.lucene.store.ByteBufferIndexInput.clone(ByteBufferIndexInput.java:187) > at org.apache.lucene.store.MMapDirectory$1.openFullSlice(MMapDirectory.java:211) > at org.apache.lucene.store.CompoundFileDirectory.readEntries(CompoundFileDirectory.java:138) > at org.apache.lucene.store.CompoundFileDirectory.(CompoundFileDirectory.java:105) > at org.apache.lucene.index.SegmentReader.readFieldInfos(SegmentReader.java:209) > at org.apache.lucene.index.SegmentReader.(SegmentReader.java:99) > at org.apache.lucene.index.ReadersAndUpdates.getReader(ReadersAndUpdates.java:142) > at org.apache.lucene.index.ReadersAndUpdates.getReaderForMerge(ReadersAndUpdates.java:624) > at org.apache.lucene.index.IndexWriter.mergeMiddle(IndexWriter.java:4068) > at org.apache.lucene.index.IndexWriter.merge(IndexWriter.java:3728) > at org.apache.lucene.index.ConcurrentMergeScheduler.doMerge(ConcurrentMergeScheduler.java:405) > at org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:482) > {noformat} > According to the email, it happens randomly while indexing Wikipedia, on 4.8.0. As far as I understood, the indexer creates 4 indexes in parallel, by a total of 48 threads. Each index is created in a separate directory, and there's no sharing of MP or MS instances between the writers (in fact, default settings are used). This could explain the {{Lucene Merge Thread #73}}. The indexing process ends w/ a {{forceMerge(1)}}. If that call is omitted, the exception doesn't reproduce. Also, since it doesn't happen always, there's no simple testcase which reproduces. > I've asked the reporter to add more info to the issue, but opening the issue now so we could check and hopefully fix before 4.8.1. > I checked the stacktrace against trunk, but not all the lines align (e.g. {{at org.apache.lucene.store.MMapDirectory$1.openFullSlice(MMapDirectory.java:211)}} is only in 4.8), but I haven't dug deeper yet... -- This message was sent by Atlassian JIRA (v6.2#6252) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org