Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-2614

Queries that use sort may end up in infinite loop

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 5.1.0.Final
    • Fix Version/s: 5.2.0.Final
    • Component/s: Query
    • Labels:
      None

      Description

      When result rows to queries such as

      SELECT .. WHERE [ns:property1] = 'A' AND [ns:property2] = 'B' ORDER  BY ['ns:property3']
      

      are filtered in query SELECT phase so that the first returned batch is empty, BufferedSequence.loadAll() returns batch size zero, which causes an infinite loop in SortingSequence that now tries to fetch result rows in empty batches.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                hchiorean Horia Chiorean
                Reporter:
                tsallinen Timo Sallinen
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: