[ 
https://issues.apache.org/jira/browse/LUCENE-6299?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14337485#comment-14337485
 ] 

Robert Muir commented on LUCENE-6299:
-------------------------------------

I wish the exception was different when it strikes at runtime too. For a 
DirectoryReader, IMO it should be a CorruptIndexException, since IndexWriter 
prevents it, and thats how it behaves to users. On the other hand for a 
MultiReader, the current IllegalArgument is good (you multi'd too much stuff).

> IndexWriter's enforcement of 2.1B doc limits is buggy
> -----------------------------------------------------
>
>                 Key: LUCENE-6299
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6299
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>
> E.g. if you pass an already > 2.1B docs to either addIndexes, it can fail to 
> enforce properly.
> IW's private reserveDocs should refuse to accept negative values.
> IW.deleteAll fails to set the pendingNumDocs to 0.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to