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

IndexOutOfBoundsException on directory with ~20 subdirectories

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 1.1.0
    • 1.6.0
    • Functions - Drill
    • None
    • RHEL 7

    Description

      Tested on 1.1 with commit id:

      0: jdbc:drill:zk=local> select commit_id from sys.version;
      +-------------------------------------------+
      |                 commit_id                 |
      +-------------------------------------------+
      | e3fc7e97bfe712dc09d43a8a055a5135c96b7344  |
      +-------------------------------------------+
      

      Directory has child directories "a" to "u", each contain json files.
      Running the query on each subdirectory indivudually does not cause an error.

      java.lang.RuntimeException: java.sql.SQLException: SYSTEM ERROR: IndexOutOfBoundsException: index: 0, length: 1 (expected: range(0, 0))
      
      Fragment 1:2
      
      [Error Id: 69a0879f-f718-4930-ae6f-c526de05528c on ip-172-31-29-60.eu-central-1.compute.internal:31010]
      	at sqlline.IncrementalRows.hasNext(IncrementalRows.java:73)
      	at sqlline.TableOutputFormat$ResizingRowsProvider.next(TableOutputFormat.java:87)
      	at sqlline.TableOutputFormat.print(TableOutputFormat.java:118)
      	at sqlline.SqlLine.print(SqlLine.java:1583)
      	at sqlline.Commands.execute(Commands.java:852)
      	at sqlline.Commands.sql(Commands.java:751)
      	at sqlline.SqlLine.dispatch(SqlLine.java:738)
      	at sqlline.SqlLine.begin(SqlLine.java:612)
      	at sqlline.SqlLine.start(SqlLine.java:366)
      	at sqlline.SqlLine.main(SqlLine.java:259)
      

      Attachments

        Issue Links

          Activity

            People

              arina Arina Ielchiieva
              dekken Philip Deegan
              Krystal Krystal
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: