addIndexesNoOptimize should not enforce maxMergeDocs/maxMergeSize limit
-----------------------------------------------------------------------

                 Key: LUCENE-1254
                 URL: https://issues.apache.org/jira/browse/LUCENE-1254
             Project: Lucene - Java
          Issue Type: Bug
          Components: Index
    Affects Versions: 2.3, 2.2, 2.1
            Reporter: Michael McCandless
            Assignee: Michael McCandless
            Priority: Trivial
             Fix For: 2.4


If you pass an index that has a segment > maxMergeDocs or maxMergeSize
to addIndexesNoOptimize, it throws an IllegalArgumentException.

But this check isn't reasonable because segment merging can easily
produce segments over these sizes since those limits apply to each
segment being merged, not to the final size of the segment produced.

So if you set maxMergeDocs to X, build up and index, then try to add
that index to another index that also has maxMergeDocs X, you can
easily hit the exception.

I think it's being too pedantic; I plan to just remove the checks for
sizes.

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to