drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Khurram Faraaz (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DRILL-4502) Need better error message, after foreman (Drillbit) is stopped when query is running
Date Sun, 13 Mar 2016 17:36:33 GMT
Khurram Faraaz created DRILL-4502:
-------------------------------------

             Summary: Need better error message, after foreman (Drillbit) is stopped when
query is running
                 Key: DRILL-4502
                 URL: https://issues.apache.org/jira/browse/DRILL-4502
             Project: Apache Drill
          Issue Type: Bug
          Components: Execution - Flow
         Environment: 4 node cluster CentOS
            Reporter: Khurram Faraaz


Issue a long running query (a simple select) and then stop the Drillbit on Foreman node. Upon
stopping the foreman node using below command we see an error is reported on sqlline prompt.


We should report on sqlline prompt that the Drillbit (foreman) was stopped, rather than reporting
a DATA_READ ERROR to user.

Drill 1.6.0 and JDK7, git commit ID : 64ab0a8ec9d98bf96f4d69274dddc180b8efe263

maprcli node services -name drill-bits -action stop -nodes 10.10.100.201

{noformat}
0: jdbc:drill:schema=dfs.tmp> select * from `twoKeyJsn.json`;
...
...
| 2.07284907136E8  | i    |
| 4.36519831895E8  | a    |
| 7.74844464533E7  | b    |
| 4.61974126986E8  | i    |
Error: DATA_READ ERROR: Error parsing JSON - null

File  /tmp/twoKeyJsn.json
Record  528485
Fragment 0:0

[Error Id: ecd2231f-0e6b-4f47-b0f9-6208f7300a8b on centos-01.qa.lab:31010] (state=,code=0)

2016-03-11 06:42:56,673 [291d970f-1512-eb9b-83de-df2954c1f213:frag:0:0] INFO  o.a.d.e.w.fragment.FragmentExecutor
- 291d970f-1512-eb9b-83de-df2954c1f213:0:0: State change requested AWAITING_ALLOCATION -->
RUNNING
2016-03-11 06:42:56,691 [291d970f-1512-eb9b-83de-df2954c1f213:frag:0:0] INFO  o.a.d.e.w.f.FragmentStatusReporter
- 291d970f-1512-eb9b-83de-df2954c1f213:0:0: State to report: RUNNING
Fri Mar 11 06:43:06 UTC 2016 Terminating drillbit pid 17786
2016-03-11 06:43:06,548 [Drillbit-ShutdownHook#0] INFO  o.apache.drill.exec.server.Drillbit
- Received shutdown request.
2016-03-11 06:43:06,954 [291d970f-1512-eb9b-83de-df2954c1f213:frag:0:0] INFO  o.a.d.e.s.easy.json.JSONRecordReader
- User Error Occurred
org.apache.drill.common.exceptions.UserException: DATA_READ ERROR: Error parsing JSON - null

File  /tmp/twoKeyJsn.json
Record  528485

[Error Id: ecd2231f-0e6b-4f47-b0f9-6208f7300a8b ]
        at org.apache.drill.common.exceptions.UserException$Builder.build(UserException.java:543)
~[drill-common-1.6.0-SNAPSHOT.jar:1.6.0-SNAPSHOT]
        at org.apache.drill.exec.store.easy.json.JSONRecordReader.handleAndRaise(JSONRecordReader.java:179)
[drill-java-exec-1.6.0-SNAPSHOT.jar:1.6.0-SNAPSHOT]
        at org.apache.drill.exec.store.easy.json.JSONRecordReader.next(JSONRecordReader.java:219)
[drill-java-exec-1.6.0-SNAPSHOT.jar:1.6.0-SNAPSHOT]
        at org.apache.drill.exec.physical.impl.ScanBatch.next(ScanBatch.java:191) [drill-java-exec-1.6.0-SNAPSHOT.jar:1.6.0-SNAPSHOT]
        at org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:119)
[drill-java-exec-1.6.0-SNAPSHOT.jar:1.6.0-SNAPSHOT]
        at org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:109)
[drill-java-exec-1.6.0-SNAPSHOT.jar:1.6.0-SNAPSHOT]
        at org.apache.drill.exec.record.AbstractSingleRecordBatch.innerNext(AbstractSingleRecordBatch.java:51)
[drill-java-exec-1.6.0-SNAPSHOT.jar:1.6.0-SNAPSHOT]
        at org.apache.drill.exec.physical.impl.project.ProjectRecordBatch.innerNext(ProjectRecordBatch.java:129)
[drill-java-exec-1.6.0-SNAPSHOT.jar:1.6.0-SNAPSHOT]
        at org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:162)
[drill-java-exec-1.6.0-SNAPSHOT.jar:1.6.0-SNAPSHOT]
        at org.apache.drill.exec.physical.impl.BaseRootExec.next(BaseRootExec.java:104) [drill-java-exec-1.6.0-SNAPSHOT.jar:1.6.0-SNAPSHOT]
        at org.apache.drill.exec.physical.impl.ScreenCreator$ScreenRoot.innerNext(ScreenCreator.java:81)
[drill-java-exec-1.6.0-SNAPSHOT.jar:1.6.0-SNAPSHOT]
        at org.apache.drill.exec.physical.impl.BaseRootExec.next(BaseRootExec.java:94) [drill-java-exec-1.6.0-SNAPSHOT.jar:1.6.0-SNAPSHOT]
        at org.apache.drill.exec.work.fragment.FragmentExecutor$1.run(FragmentExecutor.java:257)
[drill-java-exec-1.6.0-SNAPSHOT.jar:1.6.0-SNAPSHOT]
        at org.apache.drill.exec.work.fragment.FragmentExecutor$1.run(FragmentExecutor.java:251)
[drill-java-exec-1.6.0-SNAPSHOT.jar:1.6.0-SNAPSHOT]
        at java.security.AccessController.doPrivileged(Native Method) [na:1.7.0_45]
        at javax.security.auth.Subject.doAs(Subject.java:415) [na:1.7.0_45]
        at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1595)
[hadoop-common-2.7.0-mapr-1602.jar:na]
        at org.apache.drill.exec.work.fragment.FragmentExecutor.run(FragmentExecutor.java:251)
[drill-java-exec-1.6.0-SNAPSHOT.jar:1.6.0-SNAPSHOT]
        at org.apache.drill.common.SelfCleaningRunnable.run(SelfCleaningRunnable.java:38)
[drill-common-1.6.0-SNAPSHOT.jar:1.6.0-SNAPSHOT]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[na:1.7.0_45]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[na:1.7.0_45]
        at java.lang.Thread.run(Thread.java:744) [na:1.7.0_45]
Caused by: java.lang.NullPointerException: null
        at com.mapr.fs.MapRFsInStream.read(MapRFsInStream.java:272) ~[maprfs-5.1.0-mapr.jar:5.1.0-mapr]
        at java.io.DataInputStream.read(DataInputStream.java:149) ~[na:1.7.0_45]
        at org.apache.drill.exec.store.dfs.DrillFSDataInputStream$WrappedInputStream.read(DrillFSDataInputStream.java:216)
~[drill-java-exec-1.6.0-SNAPSHOT.jar:1.6.0-SNAPSHOT]
        at java.io.DataInputStream.read(DataInputStream.java:149) ~[na:1.7.0_45]
        at com.fasterxml.jackson.core.json.UTF8StreamJsonParser.loadMore(UTF8StreamJsonParser.java:207)
~[jackson-core-2.7.1.jar:2.7.1]
        at com.fasterxml.jackson.core.json.UTF8StreamJsonParser._parseNumber2(UTF8StreamJsonParser.java:1470)
~[jackson-core-2.7.1.jar:2.7.1]
        at com.fasterxml.jackson.core.json.UTF8StreamJsonParser._parsePosNumber(UTF8StreamJsonParser.java:1378)
~[jackson-core-2.7.1.jar:2.7.1]
        at com.fasterxml.jackson.core.json.UTF8StreamJsonParser.nextToken(UTF8StreamJsonParser.java:786)
~[jackson-core-2.7.1.jar:2.7.1]
        at org.apache.drill.exec.vector.complex.fn.JsonReader.writeData(JsonReader.java:283)
~[drill-java-exec-1.6.0-SNAPSHOT.jar:1.6.0-SNAPSHOT]
        at org.apache.drill.exec.vector.complex.fn.JsonReader.writeDataSwitch(JsonReader.java:240)
~[drill-java-exec-1.6.0-SNAPSHOT.jar:1.6.0-SNAPSHOT]
        at org.apache.drill.exec.vector.complex.fn.JsonReader.writeToVector(JsonReader.java:178)
~[drill-java-exec-1.6.0-SNAPSHOT.jar:1.6.0-SNAPSHOT]
        at org.apache.drill.exec.vector.complex.fn.JsonReader.write(JsonReader.java:144) ~[drill-java-exec-1.6.0-SNAPSHOT.jar:1.6.0-SNAPSHOT]
        at org.apache.drill.exec.store.easy.json.JSONRecordReader.next(JSONRecordReader.java:197)
[drill-java-exec-1.6.0-SNAPSHOT.jar:1.6.0-SNAPSHOT]
        ... 19 common frames omitted
{noformat}



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

Mime
View raw message