Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-2884

Have cancel() cause "query canceled" rather than just "ResultSet closed"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.0.0
    • None
    • None

    Description

      After Statement.cancel() is called for a SQL statement's execution, a subsequent call to a method on the ResultSet for that execution yields a "ResultSet already closed" exception. (This isn't fully implemented yet, but it is for, e.g., next().)

      A call to cancel() should result in an explicit "execution canceled" exception rather than the usual "already closed" exception (so that it doesn't seem like a Drill programming error rather an expected result of canceling).

      Attachments

        1. DRILL-2884.1Core.1.patch.txt
          8 kB
          Daniel Barclay
        2. DRILL-2884.2Hygiene.1.patch.txt
          12 kB
          Daniel Barclay
        3. DRILL-2884.2Hygiene.2.patch.txt
          13 kB
          Daniel Barclay

        Issue Links

          Activity

            People

              dsbos Daniel Barclay
              dsbos Daniel Barclay
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: