Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-1980

Distributed Queries problem when results size could be greater than HsQuery.maxResults

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 5.2.0.Final
    • 5.1.4.CR1
    • Embedded Querying
    • None

    Description

      When a distributed query could get more results than HSQuery.maxResults, an exception is thrown:
      Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 200, Size: 200
      at java.util.ArrayList.rangeCheck(ArrayList.java:571)
      at java.util.ArrayList.get(ArrayList.java:349)
      at org.infinispan.query.clustered.DistributedIterator.current(DistributedIterator.java:140)
      at org.infinispan.query.clustered.DistributedIterator.next(DistributedIterator.java:116)

      The correct behaviour is to limit the results up to HsQuery.maxResults

      Attachments

        Activity

          People

            israeldl_jira Israel Lacerra (Inactive)
            israeldl_jira Israel Lacerra (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: