[ 
https://issues.apache.org/jira/browse/DRILL-1605?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14268153#comment-14268153
 ] 

Venkata krishnan Sowrirajan commented on DRILL-1605:
----------------------------------------------------

Now JVM is not crashing. If the 2 json files are having different schemas, I am 
getting the below exception. In the drillbit.log, I don't see any logs with 
exception. FYI, I set debug logging in drillbit.

java.lang.IndexOutOfBoundsException: index: 4, length: 4 (expected: range(0, 4))
        at io.netty.buffer.DrillBuf.checkIndexD(DrillBuf.java:156)
        at io.netty.buffer.DrillBuf.chk(DrillBuf.java:178)
        at io.netty.buffer.DrillBuf.getInt(DrillBuf.java:447)
        at 
org.apache.drill.exec.vector.UInt4Vector$Accessor.get(UInt4Vector.java:297)
        at 
org.apache.drill.exec.vector.RepeatedVarCharVector$Accessor.getObject(RepeatedVarCharVector.java:335)
        at 
org.apache.drill.exec.vector.RepeatedVarCharVector$Accessor.getObject(RepeatedVarCharVector.java:313)
        at 
org.apache.drill.exec.vector.accessor.GenericAccessor.getObject(GenericAccessor.java:38)
        at 
org.apache.drill.jdbc.AvaticaDrillSqlAccessor.getObject(AvaticaDrillSqlAccessor.java:136)
        at 
net.hydromatic.avatica.AvaticaResultSet.getObject(AvaticaResultSet.java:351)
        at sqlline.SqlLine$Rows$Row.<init>(SqlLine.java:2388)
        at sqlline.SqlLine$IncrementalRows.hasNext(SqlLine.java:2504)
        at sqlline.SqlLine$TableOutputFormat.print(SqlLine.java:2148)
        at sqlline.SqlLine.print(SqlLine.java:1809)
        at sqlline.SqlLine$Commands.execute(SqlLine.java:3766)
        at sqlline.SqlLine$Commands.sql(SqlLine.java:3663)
        at sqlline.SqlLine.dispatch(SqlLine.java:889)
        at sqlline.SqlLine.begin(SqlLine.java:763)
        at sqlline.SqlLine.start(SqlLine.java:498)
        at sqlline.SqlLine.main(SqlLine.java:460)

> Sqlline JVM crashes if we query a directory of json files having different 
> schemas.
> -----------------------------------------------------------------------------------
>
>                 Key: DRILL-1605
>                 URL: https://issues.apache.org/jira/browse/DRILL-1605
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Client - JDBC
>    Affects Versions: 0.6.0
>            Reporter: Venkata krishnan Sowrirajan
>            Assignee: Suresh Ollala
>            Priority: Critical
>             Fix For: 0.8.0
>
>         Attachments: openjdk.log, oracle-jdk.log
>
>
> This "json" directory has 2 json files. If the 2 json files have different 
> schemas not the same structure, sqlline JVM crashes. I tried copying the same 
> file with different name and tried querying that worked fine.
> select * from `json`;
> #
> # A fatal error has been detected by the Java Runtime Environment:
> #
> #  SIGSEGV (0xb) at pc=0x00007f9bb418c425, pid=4858, tid=140307876988672
> #
> # JRE version: OpenJDK Runtime Environment (7.0_65-b17) (build 
> 1.7.0_65-mockbuild_2014_07_16_06_06-b00)
> # Java VM: OpenJDK 64-Bit Server VM (24.65-b04 mixed mode linux-amd64 
> compressed oops)
> # Problematic frame:
> # J 544 C2 
> sqlline.SqlLine$Rows$Row.<init>(Lsqlline/SqlLine$Rows;ILjava/sql/ResultSet;)V 
> (218 bytes) @ 0x00007f9bb418c425 [0x00007f9bb418bfc0+0x465]
> #
> # Failed to write core dump. Core dumps have been disabled. To enable core 
> dumping, try "ulimit -c unlimited" before starting Java again
> #
> # An error report file with more information is saved as:
> # /tmp/jvm-4858/hs_error.log
> #
> # If you would like to submit a bug report, please include
> # instructions on how to reproduce the bug and visit:
> #   http://icedtea.classpath.org/bugzilla
> #
> Aborted



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

Reply via email to