You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by "Philip Deegan (JIRA)" <ji...@apache.org> on 2015/07/23 12:45:04 UTC

[jira] [Created] (DRILL-3547) IndexOutOfBoundsException on directory with ~20 subdirectories

Philip Deegan created DRILL-3547:
------------------------------------

             Summary: IndexOutOfBoundsException on directory with ~20 subdirectories
                 Key: DRILL-3547
                 URL: https://issues.apache.org/jira/browse/DRILL-3547
             Project: Apache Drill
          Issue Type: Bug
          Components: Functions - Drill
    Affects Versions: 1.1.0
         Environment: RHEL 7
            Reporter: Philip Deegan
            Assignee: Daniel Barclay (Drill)


Tested on 1.1 with commit id:
{noformat}
0: jdbc:drill:zk=local> select commit_id from sys.version;
+-------------------------------------------+
|                 commit_id                 |
+-------------------------------------------+
| e3fc7e97bfe712dc09d43a8a055a5135c96b7344  |
+-------------------------------------------+
{noformat}

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

{noformat}
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)
{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Re: [jira] [Created] (DRILL-3547) IndexOutOfBoundsException on directory with ~20 subdirectories

Posted by Stefán Baxter <st...@activitystream.com>.
Hi,

I had a similar error caused by an empty directory.
You might want to make suer that the 1 of the 20 directories is not empty.

-Stefan

On Thu, Jul 23, 2015 at 10:45 AM, Philip Deegan (JIRA) <ji...@apache.org>
wrote:

> Philip Deegan created DRILL-3547:
> ------------------------------------
>
>              Summary: IndexOutOfBoundsException on directory with ~20
> subdirectories
>                  Key: DRILL-3547
>                  URL: https://issues.apache.org/jira/browse/DRILL-3547
>              Project: Apache Drill
>           Issue Type: Bug
>           Components: Functions - Drill
>     Affects Versions: 1.1.0
>          Environment: RHEL 7
>             Reporter: Philip Deegan
>             Assignee: Daniel Barclay (Drill)
>
>
> Tested on 1.1 with commit id:
> {noformat}
> 0: jdbc:drill:zk=local> select commit_id from sys.version;
> +-------------------------------------------+
> |                 commit_id                 |
> +-------------------------------------------+
> | e3fc7e97bfe712dc09d43a8a055a5135c96b7344  |
> +-------------------------------------------+
> {noformat}
>
> Directory has child directories "a" to "u", each contain json files.
> Running the query on each subdirectory indivudually does not cause an
> error.
>
> {noformat}
> 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)
> {noformat}
>
>
>
> --
> This message was sent by Atlassian JIRA
> (v6.3.4#6332)
>