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

Ivan Rozhnov commented on LUCENE-504:
-------------------------------------

Hi guys,

It seems to me that problem is still opened. Can it be fixed with dynamic size of storage in PriorityQueue and couple of similar classes and using MaxClauseCount as top limit for size of such storage. It seems to be very weird to have preinitialized array of Max size in collection constructor.

Thanks,
Ivan
FuzzyQuery produces a "java.lang.NegativeArraySizeException" in PriorityQueue.initialize if I use Integer.MAX_VALUE as BooleanQuery.MaxClauseCount
--------------------------------------------------------------------------------------------------------------------------------------------------

Key: LUCENE-504
URL: https://issues.apache.org/jira/browse/LUCENE-504
Project: Lucene - Java
Issue Type: Bug
Components: Search
Affects Versions: 1.9
Reporter: Joerg Henss
Priority: Minor
Attachments: BooleanQuery.java.diff, fuzzyquery.patch, PriorityQueue.java.diff, TestFuzzyQueryError.java


PriorityQueue creates an "java.lang.NegativeArraySizeException" when initialized with Integer.MAX_VALUE, because Integer overflows. I think this could be a general problem with PriorityQueue. The Error occured when I set BooleanQuery.MaxClauseCount to Integer.MAX_VALUE and user a FuzzyQuery for searching.
--
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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org

Search Discussions

  • Michael McCandless (JIRA) at Nov 3, 2009 at 10:22 am
    [ https://issues.apache.org/jira/browse/LUCENE-504?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12773001#action_12773001 ]

    Michael McCandless commented on LUCENE-504:
    -------------------------------------------

    Since 3.0 is now on Java 1.5, can't we switch to Java's PriorityQueue? Anyone want to cough up a patch?
    FuzzyQuery produces a "java.lang.NegativeArraySizeException" in PriorityQueue.initialize if I use Integer.MAX_VALUE as BooleanQuery.MaxClauseCount
    --------------------------------------------------------------------------------------------------------------------------------------------------

    Key: LUCENE-504
    URL: https://issues.apache.org/jira/browse/LUCENE-504
    Project: Lucene - Java
    Issue Type: Bug
    Components: Search
    Affects Versions: 1.9
    Reporter: Joerg Henss
    Priority: Minor
    Attachments: BooleanQuery.java.diff, fuzzyquery.patch, PriorityQueue.java.diff, TestFuzzyQueryError.java


    PriorityQueue creates an "java.lang.NegativeArraySizeException" when initialized with Integer.MAX_VALUE, because Integer overflows. I think this could be a general problem with PriorityQueue. The Error occured when I set BooleanQuery.MaxClauseCount to Integer.MAX_VALUE and user a FuzzyQuery for searching.
    --
    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: java-dev-unsubscribe@lucene.apache.org
    For additional commands, e-mail: java-dev-help@lucene.apache.org
  • Uwe Schindler (JIRA) at Nov 3, 2009 at 6:25 pm
    [ https://issues.apache.org/jira/browse/LUCENE-504?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12773098#action_12773098 ]

    Uwe Schindler commented on LUCENE-504:
    --------------------------------------

    We had a discussion about that in another issue. In general PriorityQueue of Java 1.5 does not have the features we need for Java 1.5 (it dynamically grows, but the grow process is not controllable, making it unuseable for collecting TopDocs and so on). But I think for this special case, we could use Java 5's PQ.
    FuzzyQuery produces a "java.lang.NegativeArraySizeException" in PriorityQueue.initialize if I use Integer.MAX_VALUE as BooleanQuery.MaxClauseCount
    --------------------------------------------------------------------------------------------------------------------------------------------------

    Key: LUCENE-504
    URL: https://issues.apache.org/jira/browse/LUCENE-504
    Project: Lucene - Java
    Issue Type: Bug
    Components: Search
    Affects Versions: 1.9
    Reporter: Joerg Henss
    Priority: Minor
    Attachments: BooleanQuery.java.diff, fuzzyquery.patch, PriorityQueue.java.diff, TestFuzzyQueryError.java


    PriorityQueue creates an "java.lang.NegativeArraySizeException" when initialized with Integer.MAX_VALUE, because Integer overflows. I think this could be a general problem with PriorityQueue. The Error occured when I set BooleanQuery.MaxClauseCount to Integer.MAX_VALUE and user a FuzzyQuery for searching.
    --
    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: java-dev-unsubscribe@lucene.apache.org
    For additional commands, e-mail: java-dev-help@lucene.apache.org
  • Uwe Schindler (JIRA) at Nov 3, 2009 at 6:29 pm
    [ https://issues.apache.org/jira/browse/LUCENE-504?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12773098#action_12773098 ]

    Uwe Schindler edited comment on LUCENE-504 at 11/3/09 6:27 PM:
    ---------------------------------------------------------------

    We had a discussion about that in another issue. In general PriorityQueue of Java 1.5 does not have the features we need for Lucene (it dynamically grows, but the grow process is not controllable, making it unuseable for collecting TopDocs and so on). But I think for this special case, we could use Java 5's PQ.

    was (Author: thetaphi):
    We had a discussion about that in another issue. In general PriorityQueue of Java 1.5 does not have the features we need for Java 1.5 (it dynamically grows, but the grow process is not controllable, making it unuseable for collecting TopDocs and so on). But I think for this special case, we could use Java 5's PQ.
    FuzzyQuery produces a "java.lang.NegativeArraySizeException" in PriorityQueue.initialize if I use Integer.MAX_VALUE as BooleanQuery.MaxClauseCount
    --------------------------------------------------------------------------------------------------------------------------------------------------

    Key: LUCENE-504
    URL: https://issues.apache.org/jira/browse/LUCENE-504
    Project: Lucene - Java
    Issue Type: Bug
    Components: Search
    Affects Versions: 1.9
    Reporter: Joerg Henss
    Priority: Minor
    Attachments: BooleanQuery.java.diff, fuzzyquery.patch, PriorityQueue.java.diff, TestFuzzyQueryError.java


    PriorityQueue creates an "java.lang.NegativeArraySizeException" when initialized with Integer.MAX_VALUE, because Integer overflows. I think this could be a general problem with PriorityQueue. The Error occured when I set BooleanQuery.MaxClauseCount to Integer.MAX_VALUE and user a FuzzyQuery for searching.
    --
    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: java-dev-unsubscribe@lucene.apache.org
    For additional commands, e-mail: java-dev-help@lucene.apache.org
  • Nadav Har'El (JIRA) at Nov 4, 2009 at 7:17 am
    [ https://issues.apache.org/jira/browse/LUCENE-504?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12773402#action_12773402 ]

    Nadav Har'El commented on LUCENE-504:
    -------------------------------------

    Hi Uwe, I think that even though PriorityQueue doesn't have a size limit, it is easy to implement a size limit: after an add(), if size() becomes greater than the bound, you simply poll() to remove the lowest element (this poll() returns the old object which insertWithOverflow() is to return).

    However, I think it's a good idea to compare the performance of Java's PriorityQueue (used as in the paragraph above) . I'm especially worried about the slowdown by the fact that adding a small element (below the current heap's head) in our code just does one comparison and returns, but in the usage I described above it actually modifies the heap twice (adds the element to the heap and then removes it).
    FuzzyQuery produces a "java.lang.NegativeArraySizeException" in PriorityQueue.initialize if I use Integer.MAX_VALUE as BooleanQuery.MaxClauseCount
    --------------------------------------------------------------------------------------------------------------------------------------------------

    Key: LUCENE-504
    URL: https://issues.apache.org/jira/browse/LUCENE-504
    Project: Lucene - Java
    Issue Type: Bug
    Components: Search
    Affects Versions: 1.9
    Reporter: Joerg Henss
    Priority: Minor
    Attachments: BooleanQuery.java.diff, fuzzyquery.patch, PriorityQueue.java.diff, TestFuzzyQueryError.java


    PriorityQueue creates an "java.lang.NegativeArraySizeException" when initialized with Integer.MAX_VALUE, because Integer overflows. I think this could be a general problem with PriorityQueue. The Error occured when I set BooleanQuery.MaxClauseCount to Integer.MAX_VALUE and user a FuzzyQuery for searching.
    --
    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: java-dev-unsubscribe@lucene.apache.org
    For additional commands, e-mail: java-dev-help@lucene.apache.org
  • Uwe Schindler (JIRA) at Nov 4, 2009 at 8:42 am
    [ https://issues.apache.org/jira/browse/LUCENE-504?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12773421#action_12773421 ]

    Uwe Schindler commented on LUCENE-504:
    --------------------------------------

    Nadav:
    I suggest to keep Lucene's PriorityQueue, because it is a very central and highly optimized part of Liucene. In Lucene 3.0 it is already generified, so it also fits perfectly into Java's Collection API. The only problem is that the name is now identical to one internal Java class, but we cannot change it without BW breaks.

    For this special issue, we should fix *only* FuzzyQuery to use Java5's PQ, which dynamically grows when new elements are added. And we do not need the upper limit here, like you propsed.

    I will prepare a patch tomorrow in the ApacheCon hacking session.
    FuzzyQuery produces a "java.lang.NegativeArraySizeException" in PriorityQueue.initialize if I use Integer.MAX_VALUE as BooleanQuery.MaxClauseCount
    --------------------------------------------------------------------------------------------------------------------------------------------------

    Key: LUCENE-504
    URL: https://issues.apache.org/jira/browse/LUCENE-504
    Project: Lucene - Java
    Issue Type: Bug
    Components: Search
    Affects Versions: 1.9
    Reporter: Joerg Henss
    Priority: Minor
    Attachments: BooleanQuery.java.diff, fuzzyquery.patch, PriorityQueue.java.diff, TestFuzzyQueryError.java


    PriorityQueue creates an "java.lang.NegativeArraySizeException" when initialized with Integer.MAX_VALUE, because Integer overflows. I think this could be a general problem with PriorityQueue. The Error occured when I set BooleanQuery.MaxClauseCount to Integer.MAX_VALUE and user a FuzzyQuery for searching.
    --
    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: java-dev-unsubscribe@lucene.apache.org
    For additional commands, e-mail: java-dev-help@lucene.apache.org
  • Uwe Schindler (JIRA) at Nov 4, 2009 at 8:44 am
    [ https://issues.apache.org/jira/browse/LUCENE-504?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12773421#action_12773421 ]

    Uwe Schindler edited comment on LUCENE-504 at 11/4/09 8:43 AM:
    ---------------------------------------------------------------

    Nadav:
    I suggest to keep Lucene's PriorityQueue, because it is a very central and highly optimized part of Liucene. In Lucene 3.0 it is already generified, so it also fits perfectly into Java's Collection API. The only problem is that the name is now identical to one internal Java class, but we cannot change it without BW breaks.

    For this special issue, we should fix *only* FuzzyQuery to use Java5's PQ, which dynamically grows when new elements are added. And we do not need the upper limit here, like you propsed.

    I will prepare a patch tomorrow in the ApacheCon hacking session.

    *EDIT*

    We need the upper limit here, but we can implement it like you proposed.

    was (Author: thetaphi):
    Nadav:
    I suggest to keep Lucene's PriorityQueue, because it is a very central and highly optimized part of Liucene. In Lucene 3.0 it is already generified, so it also fits perfectly into Java's Collection API. The only problem is that the name is now identical to one internal Java class, but we cannot change it without BW breaks.

    For this special issue, we should fix *only* FuzzyQuery to use Java5's PQ, which dynamically grows when new elements are added. And we do not need the upper limit here, like you propsed.

    I will prepare a patch tomorrow in the ApacheCon hacking session.
    FuzzyQuery produces a "java.lang.NegativeArraySizeException" in PriorityQueue.initialize if I use Integer.MAX_VALUE as BooleanQuery.MaxClauseCount
    --------------------------------------------------------------------------------------------------------------------------------------------------

    Key: LUCENE-504
    URL: https://issues.apache.org/jira/browse/LUCENE-504
    Project: Lucene - Java
    Issue Type: Bug
    Components: Search
    Affects Versions: 1.9
    Reporter: Joerg Henss
    Priority: Minor
    Attachments: BooleanQuery.java.diff, fuzzyquery.patch, PriorityQueue.java.diff, TestFuzzyQueryError.java


    PriorityQueue creates an "java.lang.NegativeArraySizeException" when initialized with Integer.MAX_VALUE, because Integer overflows. I think this could be a general problem with PriorityQueue. The Error occured when I set BooleanQuery.MaxClauseCount to Integer.MAX_VALUE and user a FuzzyQuery for searching.
    --
    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: java-dev-unsubscribe@lucene.apache.org
    For additional commands, e-mail: java-dev-help@lucene.apache.org
  • Uwe Schindler (JIRA) at Nov 4, 2009 at 5:11 pm
    [ https://issues.apache.org/jira/browse/LUCENE-504?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Uwe Schindler updated LUCENE-504:
    ---------------------------------

    Attachment: LUCENE-504.patch

    Here is a patch for this issue, using j.u.PriorityQueue. It currently does not limit the PQ's number of entries, it just only consumes maxClauseCount ones.

    All tests pass, but they are no real test of the PQ behaviour, as the current test cases do not test more terms than maxClauseCount. So the tests pass in all cases, independent how the compareTo method looks like, so the ordering is not important because the queue never gets full. I will add a test.

    I will also try to implement the max size, but for now, the patch shows, how the code could look like with j.u.PQ.
    FuzzyQuery produces a "java.lang.NegativeArraySizeException" in PriorityQueue.initialize if I use Integer.MAX_VALUE as BooleanQuery.MaxClauseCount
    --------------------------------------------------------------------------------------------------------------------------------------------------

    Key: LUCENE-504
    URL: https://issues.apache.org/jira/browse/LUCENE-504
    Project: Lucene - Java
    Issue Type: Bug
    Components: Search
    Affects Versions: 1.9
    Reporter: Joerg Henss
    Priority: Minor
    Attachments: BooleanQuery.java.diff, fuzzyquery.patch, LUCENE-504.patch, PriorityQueue.java.diff, TestFuzzyQueryError.java


    PriorityQueue creates an "java.lang.NegativeArraySizeException" when initialized with Integer.MAX_VALUE, because Integer overflows. I think this could be a general problem with PriorityQueue. The Error occured when I set BooleanQuery.MaxClauseCount to Integer.MAX_VALUE and user a FuzzyQuery for searching.
    --
    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: java-dev-unsubscribe@lucene.apache.org
    For additional commands, e-mail: java-dev-help@lucene.apache.org
  • Uwe Schindler (JIRA) at Nov 4, 2009 at 9:49 pm
    [ https://issues.apache.org/jira/browse/LUCENE-504?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Uwe Schindler updated LUCENE-504:
    ---------------------------------

    Attachment: LUCENE-504.patch

    Here a patch, that fixes FuzzyQuery. It uses j.u.PQ and has a small optimization to not add ScoreTerms, that would never be seen in the first maxClauseCount terms (tracking a bottom value).

    It also adds an testcase, where the maxClauseCount is lowerd downto 2 and the FuzzyQuery would hit 3 terms, so one too much. This tests the algorithm to not add this entry to the PQ.

    Nadav: The solution you propsed for limiting the number of entries in the PQ does not work, as poll() removes the head element of the queue, not the bottom that falls out. There is no way to remove the bottom value in Java's PQ easily. So we should j.u.PQ only for this issue.
    FuzzyQuery produces a "java.lang.NegativeArraySizeException" in PriorityQueue.initialize if I use Integer.MAX_VALUE as BooleanQuery.MaxClauseCount
    --------------------------------------------------------------------------------------------------------------------------------------------------

    Key: LUCENE-504
    URL: https://issues.apache.org/jira/browse/LUCENE-504
    Project: Lucene - Java
    Issue Type: Bug
    Components: Search
    Affects Versions: 1.9
    Reporter: Joerg Henss
    Priority: Minor
    Attachments: BooleanQuery.java.diff, fuzzyquery.patch, LUCENE-504.patch, LUCENE-504.patch, PriorityQueue.java.diff, TestFuzzyQueryError.java


    PriorityQueue creates an "java.lang.NegativeArraySizeException" when initialized with Integer.MAX_VALUE, because Integer overflows. I think this could be a general problem with PriorityQueue. The Error occured when I set BooleanQuery.MaxClauseCount to Integer.MAX_VALUE and user a FuzzyQuery for searching.
    --
    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: java-dev-unsubscribe@lucene.apache.org
    For additional commands, e-mail: java-dev-help@lucene.apache.org
  • Nadav Har'El (JIRA) at Nov 5, 2009 at 6:56 am
    [ https://issues.apache.org/jira/browse/LUCENE-504?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12773807#action_12773807 ]

    Nadav Har'El commented on LUCENE-504:
    -------------------------------------

    Uwe, you are right, I got confused... Sorry.
    FuzzyQuery produces a "java.lang.NegativeArraySizeException" in PriorityQueue.initialize if I use Integer.MAX_VALUE as BooleanQuery.MaxClauseCount
    --------------------------------------------------------------------------------------------------------------------------------------------------

    Key: LUCENE-504
    URL: https://issues.apache.org/jira/browse/LUCENE-504
    Project: Lucene - Java
    Issue Type: Bug
    Components: Search
    Affects Versions: 1.9
    Reporter: Joerg Henss
    Priority: Minor
    Attachments: BooleanQuery.java.diff, fuzzyquery.patch, LUCENE-504.patch, LUCENE-504.patch, PriorityQueue.java.diff, TestFuzzyQueryError.java


    PriorityQueue creates an "java.lang.NegativeArraySizeException" when initialized with Integer.MAX_VALUE, because Integer overflows. I think this could be a general problem with PriorityQueue. The Error occured when I set BooleanQuery.MaxClauseCount to Integer.MAX_VALUE and user a FuzzyQuery for searching.
    --
    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: java-dev-unsubscribe@lucene.apache.org
    For additional commands, e-mail: java-dev-help@lucene.apache.org
  • Uwe Schindler (JIRA) at Nov 6, 2009 at 6:44 pm
    [ https://issues.apache.org/jira/browse/LUCENE-504?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12774361#action_12774361 ]

    Uwe Schindler commented on LUCENE-504:
    --------------------------------------

    I think I take this one and commit it, is it ok? Thesolution seems to work quite good.
    FuzzyQuery produces a "java.lang.NegativeArraySizeException" in PriorityQueue.initialize if I use Integer.MAX_VALUE as BooleanQuery.MaxClauseCount
    --------------------------------------------------------------------------------------------------------------------------------------------------

    Key: LUCENE-504
    URL: https://issues.apache.org/jira/browse/LUCENE-504
    Project: Lucene - Java
    Issue Type: Bug
    Components: Search
    Affects Versions: 1.9
    Reporter: Joerg Henss
    Priority: Minor
    Attachments: BooleanQuery.java.diff, fuzzyquery.patch, LUCENE-504.patch, LUCENE-504.patch, PriorityQueue.java.diff, TestFuzzyQueryError.java


    PriorityQueue creates an "java.lang.NegativeArraySizeException" when initialized with Integer.MAX_VALUE, because Integer overflows. I think this could be a general problem with PriorityQueue. The Error occured when I set BooleanQuery.MaxClauseCount to Integer.MAX_VALUE and user a FuzzyQuery for searching.
    --
    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: java-dev-unsubscribe@lucene.apache.org
    For additional commands, e-mail: java-dev-help@lucene.apache.org
  • Uwe Schindler (JIRA) at Nov 6, 2009 at 8:14 pm
    [ https://issues.apache.org/jira/browse/LUCENE-504?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Uwe Schindler reassigned LUCENE-504:
    ------------------------------------

    Assignee: Uwe Schindler
    FuzzyQuery produces a "java.lang.NegativeArraySizeException" in PriorityQueue.initialize if I use Integer.MAX_VALUE as BooleanQuery.MaxClauseCount
    --------------------------------------------------------------------------------------------------------------------------------------------------

    Key: LUCENE-504
    URL: https://issues.apache.org/jira/browse/LUCENE-504
    Project: Lucene - Java
    Issue Type: Bug
    Components: Search
    Affects Versions: 1.9
    Reporter: Joerg Henss
    Assignee: Uwe Schindler
    Priority: Minor
    Attachments: BooleanQuery.java.diff, fuzzyquery.patch, LUCENE-504.patch, LUCENE-504.patch, PriorityQueue.java.diff, TestFuzzyQueryError.java


    PriorityQueue creates an "java.lang.NegativeArraySizeException" when initialized with Integer.MAX_VALUE, because Integer overflows. I think this could be a general problem with PriorityQueue. The Error occured when I set BooleanQuery.MaxClauseCount to Integer.MAX_VALUE and user a FuzzyQuery for searching.
    --
    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: java-dev-unsubscribe@lucene.apache.org
    For additional commands, e-mail: java-dev-help@lucene.apache.org
  • Uwe Schindler (JIRA) at Nov 6, 2009 at 8:16 pm
    [ https://issues.apache.org/jira/browse/LUCENE-504?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Uwe Schindler resolved LUCENE-504.
    ----------------------------------

    Resolution: Fixed
    Fix Version/s: 3.0
    Lucene Fields: [Patch Available]

    Committed revision: 833544
    FuzzyQuery produces a "java.lang.NegativeArraySizeException" in PriorityQueue.initialize if I use Integer.MAX_VALUE as BooleanQuery.MaxClauseCount
    --------------------------------------------------------------------------------------------------------------------------------------------------

    Key: LUCENE-504
    URL: https://issues.apache.org/jira/browse/LUCENE-504
    Project: Lucene - Java
    Issue Type: Bug
    Components: Search
    Affects Versions: 1.9
    Reporter: Joerg Henss
    Assignee: Uwe Schindler
    Priority: Minor
    Fix For: 3.0

    Attachments: BooleanQuery.java.diff, fuzzyquery.patch, LUCENE-504.patch, LUCENE-504.patch, PriorityQueue.java.diff, TestFuzzyQueryError.java


    PriorityQueue creates an "java.lang.NegativeArraySizeException" when initialized with Integer.MAX_VALUE, because Integer overflows. I think this could be a general problem with PriorityQueue. The Error occured when I set BooleanQuery.MaxClauseCount to Integer.MAX_VALUE and user a FuzzyQuery for searching.
    --
    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: java-dev-unsubscribe@lucene.apache.org
    For additional commands, e-mail: java-dev-help@lucene.apache.org

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupjava-dev @
categorieslucene
postedNov 2, '09 at 9:46a
activeNov 6, '09 at 8:16p
posts13
users1
websitelucene.apache.org

1 user in discussion

Uwe Schindler (JIRA): 13 posts

People

Translate

site design / logo © 2021 Grokbase